From c57b50cf6668763e39af219104b69a9370f991bf Mon Sep 17 00:00:00 2001 From: virgilchiriac Date: Wed, 22 Jan 2025 17:50:43 +0100 Subject: [PATCH] BC-8815 - separate rollout for ref-audit --- .github/workflows/rollout.yml | 17 -------------- .github/workflows/rollout_audit.yml | 35 +++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/rollout_audit.yml diff --git a/.github/workflows/rollout.yml b/.github/workflows/rollout.yml index eccf20569..ce7595ce7 100644 --- a/.github/workflows/rollout.yml +++ b/.github/workflows/rollout.yml @@ -21,23 +21,6 @@ jobs: - run: echo "Target(s) ${{ github.event.inputs.instance_group }}" - run: echo "Workflow is triggered by ${{ github.ref_type }} ${{ github.ref_name }}" - ref-audit: - if: ${{ !failure() }} - needs: - - approve_prod_stage_2 - uses: ./.github/workflows/host.yml - with: - cfg_version: ${{ github.event.inputs.config_tag_name }} - host_name: ref-audit - host_group: dbc - host_stage: reference - execute_group: ${{ github.event.inputs.instance_group }} - secrets: - token: ${{ secrets.GITHUB_TOKEN }} - ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }} - KUBECONFIG: ${{ secrets.KUBECONFIG }} - RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }} - ref-brb: needs: - approve_ref diff --git a/.github/workflows/rollout_audit.yml b/.github/workflows/rollout_audit.yml new file mode 100644 index 000000000..b218a4b88 --- /dev/null +++ b/.github/workflows/rollout_audit.yml @@ -0,0 +1,35 @@ +name: Rollout to Audit +run-name: Rollout of ${{ inputs.config_tag_name }} to ref-audit + +on: + workflow_dispatch: + inputs: + config_tag_name: + description: 'Tag from the dof_app_deploy' + required: true + +jobs: + approve_ref: + environment: approve_ref + runs-on: ubuntu-latest + steps: + - run: echo "Version ${{ github.event.inputs.config_tag_name }}" + - run: echo "Target(s) ref-audit" + - run: echo "Workflow is triggered by ${{ github.ref_type }} ${{ github.ref_name }}" + + ref-audit: + if: ${{ !failure() }} + needs: + - approve_ref + uses: ./.github/workflows/host.yml + with: + cfg_version: ${{ github.event.inputs.config_tag_name }} + host_name: ref-audit + host_group: dbc + host_stage: reference + execute_group: ref-audit + secrets: + token: ${{ secrets.GITHUB_TOKEN }} + ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }} + KUBECONFIG: ${{ secrets.KUBECONFIG }} + RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}