File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed
Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : (PROD) Build and deploy frontend
3+
4+ on :
5+ workflow_dispatch :
6+
7+ jobs :
8+ build-and-push :
9+ name : Build and push
10+ runs-on : ubuntu-24.04
11+ environment :
12+ name : prod
13+ steps :
14+ - name : GIT | Checkout
15+ uses : actions/checkout@v4
16+
17+ - name : Export variables
18+ env :
19+ VARS_CONTEXT : ${{ toJson(vars) }}
20+ run : |
21+ EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
22+ to_envs() { jq -r "to_entries[] | select(.key|startswith(\"PUBLIC_VAR\")) | \"\(.key)<<$EOF\n\(.value)\n$EOF\n\""; }
23+ echo "$VARS_CONTEXT" | to_envs >> $GITHUB_ENV
24+
25+ - name : Build and deploy - PROD
26+ uses : ./.github/actions/build-and-push
27+ with :
28+ environment : prod
29+ aws-access-key-id : ${{ secrets.AWS_S3_PROD_ACCESS_KEY_ID }}
30+ aws-secret-access-key : ${{ secrets.AWS_S3_PROD_SECRET_ACCESS_KEY }}
31+ s3-bucket-name : ${{ secrets.AWS_S3_PROD_BUCKET_NAME }}
32+ amplify-app-id : ${{ secrets.AWS_AMPLIFY_PROD_APP_ID }}
33+ npm-token : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 77jobs :
88 build-and-push :
99 name : Build and push
10- runs-on : ubuntu-20 .04
10+ runs-on : ubuntu-24 .04
1111 environment :
1212 name : stage
1313 steps :
You can’t perform that action at this time.
0 commit comments