Skip to content

Commit

Permalink
github/docker-image: Setup TG API
Browse files Browse the repository at this point in the history
Signed-off-by: Panchajanya1999 <[email protected]>
  • Loading branch information
Panchajanya1999 committed Mar 15, 2024
1 parent 27baca1 commit 59de0b1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 59de0b1

Please sign in to comment.