Skip to content

Commit

Permalink
Set var using different method
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-dharti-r committed Apr 22, 2024
1 parent 08f78aa commit 4a66742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-backend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:

- name: Build backend and copy zip to S3
run: |
sudo apt-get install -y sed
sed -i "s/RECAPTCHA_CONFIG_JSON_BASE64/${{ secrets.RECAPTCHA_CONFIG_JSON_BASE64 }}/g" utils/helper.go
secret_value="${{ secrets.RECAPTCHA_CONFIG_JSON_BASE64 }}"
sed -i "s|{{RECAPTCHA_CONFIG_JSON_BASE64}}|${secret_value}|g" utils/helper.go
apt-get update && apt-get install -y zip
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o main main.go
zip canopas_serverless_dev_${{ github.sha }}.zip main
Expand Down

0 comments on commit 4a66742

Please sign in to comment.