Skip to content

Commit

Permalink
BC-8815 - separate rollout for ref-audit
Browse files Browse the repository at this point in the history
  • Loading branch information
virgilchiriac committed Jan 22, 2025
1 parent 17defe4 commit c57b50c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/rollout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/rollout_audit.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit c57b50c

Please sign in to comment.