From a4d2dc596acbb4767d6876ccac6df3d7901e98a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Kol=C3=A1=C5=99?= Date: Tue, 14 Nov 2023 10:46:16 +0100 Subject: [PATCH] feat(cicd): announce deploys --- .github/workflows/deploy.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0ac4d303..50acff29 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,7 @@ on: jobs: build: + name: Build images runs-on: ubuntu-latest steps: - @@ -95,6 +96,7 @@ jobs: labels: ${{ steps.proxyMeta.outputs.labels }} deploy: + name: Deploy to cluster runs-on: ubuntu-latest concurrency: deploy environment: @@ -145,3 +147,22 @@ jobs: ] env: KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}' + + announce-on-telegram: + name: Announce Deploy + runs-on: ubuntu-latest + needs: + - deploy + steps: + - name: announce deploy to Telegram + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.ANNOUNCE_TELEGRAM_TO }} + token: ${{ secrets.ANNOUNCE_TELEGRAM_TOKEN }} + disable_notification: true + disable_web_page_preview: true + message: | + ${{ github.actor }} deployed: + environment: production on https://fiesta.plus + message: ${{ github.event.commits[0].message }} + changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}