diff --git a/.github/workflows/host.yml b/.github/workflows/host.yml index 4175a3de9..548ef0af5 100644 --- a/.github/workflows/host.yml +++ b/.github/workflows/host.yml @@ -26,6 +26,8 @@ on: required: true KUBECONFIG: required: true + RC_WEBHOOK: + required: true jobs: set_versions: @@ -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/Rocket.Chat.GitHub.Action.Notification@1.1.1 + 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 diff --git a/.github/workflows/rollout.yml b/.github/workflows/rollout.yml index ea12e7f2a..624738655 100644 --- a/.github/workflows/rollout.yml +++ b/.github/workflows/rollout.yml @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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() }} @@ -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() }} @@ -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() }} @@ -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() }} @@ -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() }} @@ -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 @@ -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: @@ -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: @@ -258,3 +271,4 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} ONEPASSWORD_VAULT: ${{ secrets.ONEPASSWORD_VAULT }} KUBECONFIG: ${{ secrets.KUBECONFIG }} + RC_WEBHOOK: ${{ secrets.RC_WEBHOOK }}