Skip to content

Commit

Permalink
feat(cicd): announce deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Nov 14, 2023
1 parent e11cffa commit a4d2dc5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
build:
name: Build images
runs-on: ubuntu-latest
steps:
-
Expand Down Expand Up @@ -95,6 +96,7 @@ jobs:
labels: ${{ steps.proxyMeta.outputs.labels }}

deploy:
name: Deploy to cluster
runs-on: ubuntu-latest
concurrency: deploy
environment:
Expand Down Expand Up @@ -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}}

0 comments on commit a4d2dc5

Please sign in to comment.