Skip to content

Commit 267cda5

Browse files
committed
Test deployment on gcp branch
1 parent 81fb002 commit 267cda5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/build_and_deploy_gcp.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ env:
1717
OIDC_PROVIDER: projects/23849419004/locations/global/workloadIdentityPools/polygonlabs-shared-prod/providers/oidc-shared-prod
1818
OIDC_SERVICE_ACCOUNT: shared-prod-oidc-sa@prj-polygonlabs-shared-prod.iam.gserviceaccount.com
1919

20+
permissions:
21+
contents: read
22+
id-token: write
23+
2024
jobs:
2125
build_and_deploy:
2226
runs-on: ubuntu-latest

.github/workflows/deploy_gcp.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
branches:
88
- dev
99
- main
10+
- SPEC-889-Add-github-workflow-to-publish-docker-img
1011
workflow_dispatch:
1112
inputs:
1213
environment:
@@ -22,12 +23,14 @@ jobs:
2223
if: |
2324
(github.event_name == 'pull_request' && startsWith(github.head_ref, 'hosted/')) ||
2425
(github.event_name == 'push' && github.ref == 'refs/heads/dev') ||
26+
(github.event_name == 'push' && github.ref == 'refs/heads/SPEC-889-Add-github-workflow-to-publish-docker-img') ||
2527
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
2628
(github.event_name == 'workflow_dispatch' && inputs.environment == 'prod')
2729
uses: ./.github/workflows/build_and_deploy_gcp.yml
2830
with:
2931
environment: ${{ inputs.environment ||
3032
(github.ref == 'refs/heads/dev' && 'dev') ||
33+
(github.ref == 'refs/heads/SPEC-889-Add-github-workflow-to-publish-docker-img' && 'dev') ||
3134
(github.ref == 'refs/heads/main' && 'staging') ||
3235
(github.event_name == 'pull_request' && 'dev') ||
3336
'dev' }}

0 commit comments

Comments
 (0)