From e0d91724bbff47aa14ef269cd59528c0113660c6 Mon Sep 17 00:00:00 2001 From: Patrick Wei <44277752+pwei1018@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:08:39 -0800 Subject: [PATCH] Update cd.yml --- .github/workflows/cd.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 0b5f479..2b43002 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -4,6 +4,9 @@ on: push: branches: - main + - feature* + - hotfix* + - release workflow_dispatch: inputs: target: @@ -11,10 +14,17 @@ on: required: true type: choice options: - - dev - - test - - sandbox - - prod + - "dev" + - "test" + - "sandbox" + - "prod" + redeploy: + description: "Redeploy Application" + required: true + type: choice + options: + - "false" + - "true" jobs: bcregistry-ui-cd: @@ -24,6 +34,7 @@ jobs: node_version: "20.15.0" app_name: "bcregistry" working_directory: "." + redeploy: ${{ inputs.redeploy }} secrets: WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }} GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}