Skip to content

Commit

Permalink
feat(deployment): add regex to add double quote to get valid json for…
Browse files Browse the repository at this point in the history
…mat on serviceaccount
  • Loading branch information
armandwipangestu committed Jun 6, 2024
1 parent 26717d7 commit 9b5d58d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/google-cloudrun-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ jobs:
echo "GCLOUD_PROJECT_ID=${{ secrets.GCLOUD_PROJECT_ID }}" >> .env.dev
echo "GCLOUD_BUCKET_NAME=${{ secrets.GCLOUD_BUCKET_NAME }}" >> .env.dev
fi
echo "${{ secrets.GCLOUD_UPLOAD_AVATAR_SERVICE_ACCOUNT }}" > serviceaccount.json
echo "${{ secrets.GCLOUD_UPLOAD_AVATAR_SERVICE_ACCOUNT }}" > tmp.json
sed -E 's/([a-zA-Z0-9_]+): ([^,}]+)/"\1": "\2"/g; s/""https":/https:\/\//g' tmp.json > serviceaccount.json
rm tmp.json
- name: Clear Docker cache
run: docker builder prune -f
Expand Down

0 comments on commit 9b5d58d

Please sign in to comment.