@@ -2,7 +2,7 @@ name: Promote staging to PROD
22on :
33 release :
44 types :
5- - released
5+ - released
66 workflow_dispatch :
77concurrency :
88 group : production-deployment
@@ -12,14 +12,14 @@ jobs:
1212 sync-staging-prod :
1313 permissions :
1414 contents : ' read'
15- id-token : ' write'
15+ id-token : ' write'
1616 runs-on : ubuntu-latest
1717 environment : production
1818 steps :
1919 - name : Checkout
2020 uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
2121 with :
22- path : apps
22+ path : apps
2323
2424 - name : prepare env logic
2525 id : prepare
@@ -36,23 +36,23 @@ jobs:
3636 service_account : ' ${{ secrets.GSA }}'
3737
3838 - name : ' Set up Cloud SDK'
39- uses : google-github-actions/setup-gcloud@62d4898025f6041e16b1068643bfc5a696863587 # @v1
39+ uses : google-github-actions/setup-gcloud@62d4898025f6041e16b1068643bfc5a696863587 # @v1
4040
4141 - name : Sync webpack from staging
4242 run : gsutil -m rsync -d -r gs://app.staging.centrifuge.io gs://${{ steps.prepare.outputs.front_url }}
43-
43+
4444 retrieve-prod-assets :
4545 runs-on : ubuntu-latest
46- steps :
46+ steps :
4747 - name : Download artifact
4848 id : download-artifact
4949 uses : dawidd6/action-download-artifact@v2
5050 with :
5151 workflow : staging-deploy.yml
52- workflow_conclusion : " " # This will fail if the staging deployment isn't finished yet
52+ workflow_conclusion : ' ' # This will fail if the staging deployment isn't finished yet
5353 # check_artifacts: true # This will search for the last available artifact, useful for testing
5454
55- # Alternative: download from the release instead of
55+ # Alternative: download from the release instead of
5656 # workflow artifacts
5757 # - uses: dsaltares/fetch-gh-release-asset@master
5858 # with:
@@ -77,17 +77,17 @@ jobs:
7777 # echo "Workspace PATH: ${{ github.workspace }}"
7878 # ls -la $GITHUB_WORKSPACE
7979
80- - uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # @3.1.2
81- with :
80+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # @4.6.0
81+ with :
8282 name : onboarding-api
8383 path : ${{ github.workspace }}/onboarding-api-staging/
84- if-no-files-found : error
85-
86- - uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # @3.1.2
87- with :
84+ if-no-files-found : error
85+
86+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # @4.6.0
87+ with :
8888 name : pinning-api
8989 path : ${{ github.workspace }}/pinning-api-staging/
90- if-no-files-found : error
90+ if-no-files-found : error
9191
9292 pinning-prod-deploy :
9393 needs : retrieve-prod-assets
@@ -103,7 +103,7 @@ jobs:
103103 - name : Checkout
104104 uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
105105 with :
106- path : apps
106+ path : apps
107107
108108 - name : Deploy Gfunction
109109 id : functionsdeploy
@@ -114,7 +114,7 @@ jobs:
114114 GSA : ${{ secrets.GSA }}
115115 target : ${{ env.function_handler }}
116116 gcloud_region : ${{ vars.GCLOUD_REGION }}
117- service_account : " ${{ vars.PINNING_API_FUNCT_SA }}"
117+ service_account : ' ${{ vars.PINNING_API_FUNCT_SA }}'
118118 deploy_env : production
119119
120120 onboarding-prod-deploy :
@@ -131,7 +131,7 @@ jobs:
131131 - name : Checkout
132132 uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
133133 with :
134- path : apps
134+ path : apps
135135
136136 - name : Deploy Gfunction
137137 id : functionsdeploy
@@ -141,7 +141,7 @@ jobs:
141141 GWIP : ${{ secrets.GWIP }}
142142 GSA : ${{ secrets.GSA }}
143143 target : ${{ env.function_handler }}
144- service_account : " ${{ vars.ONBOARDING_FUNCT_SA }}"
144+ service_account : ' ${{ vars.ONBOARDING_FUNCT_SA }}'
145145 gcloud_region : ${{ vars.GCLOUD_REGION }}
146146 deploy_env : production
147147
@@ -156,7 +156,7 @@ jobs:
156156 SLACK_MESSAGE : |
157157 app.staging.centrifuge.io has been promoted to app.centrifuge.io and is now LIVE!
158158 Check out the new release -> https://github.com/centrifuge/apps/releases/
159- SLACK_USERNAME : " Centrifuge GHA Bot"
160- SLACK_ICON : " https://centrifuge.io/favicon.ico"
161- SLACK_TITLE : " Centrifuge app has been promoted to prod."
162- SLACK_FOOTER : " Automatic message from centrifuge/apps repository Actions"
159+ SLACK_USERNAME : ' Centrifuge GHA Bot'
160+ SLACK_ICON : ' https://centrifuge.io/favicon.ico'
161+ SLACK_TITLE : ' Centrifuge app has been promoted to prod.'
162+ SLACK_FOOTER : ' Automatic message from centrifuge/apps repository Actions'
0 commit comments