summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-09 18:04:08 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-09 18:04:08 +0100
commit293a18af5122c7d0bd0daa1387b9ed29de0d8b05 (patch)
treec15c014f5f559881abbf88ea1a65056f18a19426 /.github/workflows
parentFix discord message payload (diff)
downloadseven-wonders-293a18af5122c7d0bd0daa1387b9ed29de0d8b05.tar.gz
seven-wonders-293a18af5122c7d0bd0daa1387b9ed29de0d8b05.tar.bz2
seven-wonders-293a18af5122c7d0bd0daa1387b9ed29de0d8b05.zip
Add deployment notifications for discord
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci-cd.yml14
1 files changed, 14 insertions, 0 deletions
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!'
bgstack15