diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 50aeadf..2b73597 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -8,6 +8,10 @@ on: schedule: - cron: '0 0 * * *' +env: + BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} + CHAT_ID: ${{ secrets.CHAT }} + jobs: build: runs-on: ubuntu-latest @@ -21,6 +25,10 @@ jobs: username: panchajanya1999 password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Announce on TG + run: | + curl -s -X POST https://api.telegram.org/bot${BOT_TOKEN}/sendMessage -d chat_id=${CHAT_ID} -d text="Docker image build started" + - name: Build and push Docker image run: | docker build -f Dockerfile . -t panchajanya1999/archlinux:latest