Skip to content

Commit

Permalink
Use different method for set the value
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-dharti-r committed Apr 22, 2024
1 parent 4a66742 commit 08ac4bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-backend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Build backend and copy zip to S3
run: |
secret_value="${{ secrets.RECAPTCHA_CONFIG_JSON_BASE64 }}"
sed -i "s|{{RECAPTCHA_CONFIG_JSON_BASE64}}|${secret_value}|g" utils/helper.go
awk -v val="${secret_value}" '{gsub(/{{RECAPTCHA_CONFIG_JSON_BASE64}}/, val)} 1' utils/helper.go > temp.go && mv temp.go 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 08ac4bb

Please sign in to comment.