Skip to content

Commit

Permalink
Merge pull request #10 from Finboost/dev-arman
Browse files Browse the repository at this point in the history
feat(deployment): add regex to add double quote to get valid json format on serviceaccount
  • Loading branch information
armandwipangestu authored Jun 6, 2024
2 parents 44b4600 + 9b5d58d commit a841b11
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 a841b11

Please sign in to comment.