don't echo the command into the config pipe the result into the file

This commit is contained in:
Tom Broughton 2023-10-27 09:47:10 +01:00
parent 8e649aac83
commit 94c80fb3e1

View file

@ -27,8 +27,8 @@ jobs:
AER_USER_PWD: ${{ secrets.AER_USER_PWD }}
run: |
mv app/config.json.sample app/config.json
echo jq --arg pk "$KEY" '.user.privatekey = \$pk' app/config.json.sample > app/config.json.tmp && mv app/config.json.tmp app/config.json
echo jq --arg pwd "$AER_USER_PWD" '.user.password = \$pwd' app/config.json.sample > app/config.json.tmp && mv app/config.json.tmp app/config.json
jq --arg pk "$KEY" '.user.privatekey = \$pk' app/config.json.sample > app/config.json.tmp && mv app/config.json.tmp app/config.json
jq --arg pwd "$AER_USER_PWD" '.user.password = \$pwd' app/config.json.sample > app/config.json.tmp && mv app/config.json.tmp app/config.json
- name: Upload image to ECR
run: |
./image-build-upload.sh