Skip to content

Commit 98ece91

Browse files
committed
fix(frontend-ci): add flag to enable build and push
1 parent a513470 commit 98ece91

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/frontend_build_deploy_s3.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ run-name: Build and Deploy - ${{ inputs.environment }} - ${{ inputs.version }}
33
on:
44
workflow_call:
55
inputs:
6+
enable:
7+
description: 'Enable build and deploy'
8+
required: false
9+
default: true
10+
type: boolean
611
version:
712
required: true
813
type: string
@@ -40,6 +45,7 @@ jobs:
4045
# todo push to versioned s3 path / dont invalidate cache / instead create PR on Infrastructure repo to update origin path or copy the directory
4146
build-push-s3:
4247
name: Build and push application to S3 bucket
48+
if: ${{ inputs.enable }}
4349
runs-on: ubuntu-latest
4450
environment: ${{ inputs.environment }}
4551
timeout-minutes: 5

.github/workflows/frontend_workflow.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ on:
3333
description: "Deployment environment used to resolve secrets (e.g., dev, int)"
3434
required: true
3535
type: string
36+
enable-build-push:
37+
description: 'Enable build and deploy to S3'
38+
required: false
39+
default: true
40+
type: boolean
3641
secrets:
3742
SEMVER_PRIVATE_KEY:
3843
description: "GitHub App private key matching the app-id inputs"
@@ -97,6 +102,7 @@ jobs:
97102
AWS_OIDC_ROLE_ARN: ${{ secrets.AWS_OIDC_ROLE_ARN }}
98103
AWS_DEPLOYMENT_ROLE_ARN: ${{ secrets.AWS_DEPLOYMENT_ROLE_ARN }}
99104
with:
105+
enable: ${{ inputs.enable-build-push }}
100106
environment: ${{ inputs.environment }}
101107
build-configuration: ${{ github.ref == 'refs/heads/develop' && 'dev' || 'int' }}
102108
version: ${{needs.semantic-release.outputs.version }}

0 commit comments

Comments
 (0)