From 293a18af5122c7d0bd0daa1387b9ed29de0d8b05 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Tue, 9 Feb 2021 18:04:08 +0100 Subject: Add deployment notifications for discord --- .github/workflows/ci-cd.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 8216db35..65303864 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -84,8 +84,22 @@ jobs: - name: Update deployment file run: TAG=${{ env.DOCKER_IMAGE_TAG_BUILD }} && sed -i 's|:latest|:'${TAG}'|' kubernetes/server.yml + - name: Notify deploy start + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_SEVEN_WONDERS }} + uses: Ilshidur/action-discord@0.3.0 + with: + args: 'Deploying new version ([see changes]({{ EVENT_PAYLOAD.compare }}))...' + - name: Deploy to DigitalOcean Kubernetes run: kubectl apply -f kubernetes/server.yml - name: Verify deployment run: kubectl rollout status --namespace seven-wonders deployment/seven-wonders + + - name: Notify deploy success + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_SEVEN_WONDERS }} + uses: Ilshidur/action-discord@0.3.0 + with: + args: 'Deployment successful!' -- cgit