File tree Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change 5
5
branches : [bkellam/release_cleanup]
6
6
workflow_dispatch :
7
7
8
+ env :
9
+ GAR_LOCATION : us-west1
10
+
8
11
jobs :
9
12
scratch :
10
13
runs-on : ubuntu-latest
@@ -15,10 +18,10 @@ jobs:
15
18
# @see: https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/about-security-hardening-with-openid-connect#adding-permissions-settings
16
19
id-token : ' write'
17
20
steps :
18
- # - name: 'Checkout'
19
- # uses: 'actions/checkout@v3'
20
- # with:
21
- # submodules: "true"
21
+ - name : ' Checkout'
22
+ uses : ' actions/checkout@v3'
23
+ with :
24
+ submodules : " true"
22
25
23
26
- name : Print environment variable
24
27
env :
40
43
41
44
- name : ' Docker auth'
42
45
run : |-
43
- gcloud auth configure-docker us-west1-docker.pkg.dev
46
+ gcloud auth configure-docker ${{ env.GAR_LOCATION }}-docker.pkg.dev
47
+
48
+ - name : Build Docker image
49
+ id : build
50
+ uses : docker/build-push-action@v6
51
+ with :
52
+ context : .
53
+ push : true
54
+ tags : ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/sourcebot-dev/sourcebot:${{ github.sha }}
55
+ build-args : |
56
+ NEXT_PUBLIC_SOURCEBOT_VERSION=${{ github.ref_name }}
57
+ NEXT_PUBLIC_POSTHOG_PAPIK=${{ vars.NEXT_PUBLIC_POSTHOG_PAPIK }}
58
+ NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT=${{ vars.NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT }}
59
+ NEXT_PUBLIC_SENTRY_ENVIRONMENT=${{ vars.NEXT_PUBLIC_SENTRY_ENVIRONMENT }}
60
+ NEXT_PUBLIC_SENTRY_WEBAPP_DSN=${{ vars.NEXT_PUBLIC_SENTRY_WEBAPP_DSN }}
61
+ NEXT_PUBLIC_SENTRY_BACKEND_DSN=${{ vars.NEXT_PUBLIC_SENTRY_BACKEND_DSN }}
You can’t perform that action at this time.
0 commit comments