testing without jq

This commit is contained in:
Tom Broughton 2023-10-25 00:15:17 +01:00
parent d3f6af15e8
commit 8fe25d0eb7

View file

@ -21,14 +21,12 @@ jobs:
role-session-name: rusiwebgithubactions
aws-region: "eu-west-1"
# Upload an image to ECR
- name: create ssh pub key for container
- name: create config
env:
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 > app/config.json.tmp && mv app/config.json.tmp app/config.json
jq --arg pwd "$AER_USER_PWD" '.user.password = $pwd' app/config.json > app/config.json.tmp && mv app/config.json.tmp app/config.json
- name: Upload Gatsby publisher image to ECR
run: |
./image-build-upload.sh