File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 11name : Scratch Workflow
22
3+ env :
4+ GAR_LOCATION : us-west1
5+
36on :
47 push :
58 branches : [bkellam/release_cleanup]
69 workflow_dispatch :
710
8- env :
9- GAR_LOCATION : us-west1
10-
1111jobs :
1212 scratch :
1313 runs-on : ubuntu-latest
@@ -17,17 +17,14 @@ jobs:
1717 # Requird for OIDC auth with GCP.
1818 # @see: https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/about-security-hardening-with-openid-connect#adding-permissions-settings
1919 id-token : ' write'
20+ env :
21+ IMAGE_PATH : ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/sourcebot-staging/sourcebot
2022 steps :
2123 - name : ' Checkout'
2224 uses : ' actions/checkout@v3'
2325 with :
2426 submodules : " true"
2527
26- - name : Print environment variable
27- env :
28- NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT : ${{ vars.NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT }}
29- run : echo $NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT
30-
3128 # @see: https://github.com/google-github-actions/auth?tab=readme-ov-file#direct-wif
3229 - name : ' Google auth'
3330 id : ' auth'
5148 with :
5249 context : .
5350 push : true
54- tags : ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/sourcebot-staging/sourcebot:${{ github.sha }}
51+ tags : |
52+ ${{ env.IMAGE_PATH }}:${{ github.sha }}
53+ ${{ env.IMAGE_PATH }}:latest
5554 build-args : |
5655 NEXT_PUBLIC_SOURCEBOT_VERSION=${{ github.ref_name }}
5756 NEXT_PUBLIC_POSTHOG_PAPIK=${{ vars.NEXT_PUBLIC_POSTHOG_PAPIK }}
You can’t perform that action at this time.
0 commit comments