Skip to content

Commit

Permalink
Ops 3221 send rc message on ref prod deployments (#276)
Browse files Browse the repository at this point in the history
Ops 3221 send rc message on ref prod deployments
  • Loading branch information
aimee-889 authored Jun 14, 2022
1 parent 459d94e commit 068210c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ on:
required: true
KUBECONFIG:
required: true
RC_WEBHOOK:
required: true

jobs:
set_versions:
Expand Down Expand Up @@ -138,4 +140,13 @@ jobs:
- working-directory: ${{github.workspace }}/ansible/roles/sys/files
run: |
rm -rf /config
- name: Send Notification to Rocket Chat
uses: RocketChat/[email protected]
if: always() && contains(inputs.host_name, 'ref') || contains(inputs.host_name, 'prod')
with:
type: ${{ job.status }}
job_name: 'Rollout of ${{ inputs.host_name }} triggered by ${{ github.actor }}:'
url: ${{ secrets.RC_WEBHOOK }}
channel: '#release'
username: Autodeployment Info

14 changes: 14 additions & 0 deletions .github/workflows/rollout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

ref-brb:
needs:
Expand All @@ -49,6 +50,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

ref-dbc:
needs:
Expand All @@ -64,6 +66,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

ref-int:
needs:
Expand All @@ -79,6 +82,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

ref-nbc:
needs:
Expand All @@ -94,6 +98,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

ref-thr:
needs:
Expand All @@ -109,6 +114,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

approve_prod_stage_1:
if: ${{ !failure() }}
Expand Down Expand Up @@ -140,6 +146,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

approve_prod_stage_2:
if: ${{ !failure() }}
Expand Down Expand Up @@ -167,6 +174,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

prod-int:
if: ${{ !failure() }}
Expand All @@ -183,6 +191,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

prod-nbc:
if: ${{ !failure() }}
Expand All @@ -199,6 +208,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

prod-thr:
if: ${{ !failure() }}
Expand All @@ -215,6 +225,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

test-loadtest-01:
uses: ./.github/workflows/host.yml
Expand All @@ -228,6 +239,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

infra-schulcloud-01:
needs:
Expand All @@ -243,6 +255,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

infra-schulcloud-02:
needs:
Expand All @@ -258,3 +271,4 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}

0 comments on commit 068210c

Please sign in to comment.