don't rename the file first just use the renamed version

This commit is contained in:
Tom Broughton 2023-10-27 10:00:56 +01:00
parent d0e2e267d7
commit 994145bef1

View file

@ -26,7 +26,6 @@ jobs:
KEY: ${{ secrets.GATSBY_DEVOPS_PRIVATE_KEY }}
AER_USER_PWD: ${{ secrets.AER_USER_PWD }}
run: |
mv app/config.json.sample 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