Skip to content

Commit e891274

Browse files
committed
Update workflow to update docker image tag required for hosting
1 parent 333e923 commit e891274

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

.github/workflows/deploy_gcp.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,17 @@ on:
77
branches:
88
- dev
99
- main
10-
workflow_dispatch:
11-
inputs:
12-
environment:
13-
required: false
14-
type: choice
15-
description: "Select the environment to deploy to (only required for production deployment)"
16-
options:
17-
- staging
18-
- prod
1910

2011
jobs:
2112
deploy:
2213
if: |
2314
(github.event_name == 'pull_request' && startsWith(github.head_ref, 'hosted/')) ||
2415
(github.event_name == 'push' && github.ref == 'refs/heads/dev') ||
25-
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
26-
(github.event_name == 'workflow_dispatch' && inputs.environment == 'prod')
16+
(github.event_name == 'push' && github.ref == 'refs/heads/main')
2717
uses: ./.github/workflows/build_and_deploy_gcp.yml
2818
with:
29-
environment: ${{ inputs.environment ||
30-
(github.ref == 'refs/heads/dev' && 'dev') ||
19+
environment: ${{(github.ref == 'refs/heads/dev' && 'dev') ||
3120
(github.ref == 'refs/heads/main' && 'staging') ||
32-
(github.event_name == 'pull_request' && 'dev') ||
33-
'dev' }}
21+
(github.event_name == 'pull_request' && 'dev')}}
22+
core_app: ${{ github.ref == 'refs/heads/main' && 'polygon-docs-main' || 'polygon-docs-dev' }}
3423
secrets: inherit

branch/2604

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 3a58f283186885fabea877fe381fac8699c7d138

branch/dev

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit dc6f275d7b4a5af064b7a725ad2c55c244eaebca

0 commit comments

Comments
 (0)