From 4dd29c0110deaecfbb3e20d663da36169a6cf49c Mon Sep 17 00:00:00 2001 From: Travis Semple Date: Tue, 29 Oct 2024 13:16:19 -0700 Subject: [PATCH] 23247 - Enable CD for BCOL API GOLD (#1802) --- .github/workflows/bcol-api-cd-gold.yml | 34 ++++++++++++++++++++++++++ .github/workflows/bcol-api-cd.yml | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/bcol-api-cd-gold.yml diff --git a/.github/workflows/bcol-api-cd-gold.yml b/.github/workflows/bcol-api-cd-gold.yml new file mode 100644 index 000000000..4215dd8fb --- /dev/null +++ b/.github/workflows/bcol-api-cd-gold.yml @@ -0,0 +1,34 @@ +name: BCOL API GOLD CD + +on: + push: + branches: + - main + paths: + - "bcol-api/**" + workflow_dispatch: + inputs: + target: + description: "Deploy To" + required: true + type: choice + options: + - dev + - test + - prod + +jobs: + bcol-api-cd: + uses: bcgov/bcregistry-sre/.github/workflows/backend-cd-ocp.yaml@main + with: + target: ${{ inputs.target }} + app_name: "bcol-api" + working_directory: "./bcol-api" + secrets: + OP_CONNECT_URL: ${{ secrets.OP_GOLD_CONNECT_URL }} + OP_CONNECT_TOKEN: ${{ secrets.OP_GOLD_CONNECT_TOKEN }} + OPENSHIFT_DOCKER_REGISTRY: ${{ secrets.OPENSHIFT_GOLD_DOCKER_REGISTRY }} + OPENSHIFT_LOGIN_REGISTRY: ${{secrets.OPENSHIFT_GOLD_LOGIN_REGISTRY}} + OPENSHIFT_SA_NAME: ${{ secrets.OPENSHIFT_GOLD_SA_NAME }} + OPENSHIFT_SA_TOKEN: ${{ secrets.OPENSHIFT_GOLD_SA_TOKEN }} + OPENSHIFT_REPOSITORY: ${{ secrets.OPENSHIFT_GOLD_REPOSITORY }} diff --git a/.github/workflows/bcol-api-cd.yml b/.github/workflows/bcol-api-cd.yml index eb421e0ed..2ce7b9dbd 100644 --- a/.github/workflows/bcol-api-cd.yml +++ b/.github/workflows/bcol-api-cd.yml @@ -1,4 +1,4 @@ -name: BCOL API CD +name: BCOL API SILVER CD on: push: