Skip to content

Docker Image CI

Docker Image CI #13

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '0 0 * * *'
env:
BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
CHAT_ID: ${{ secrets.CHAT }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
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
docker push panchajanya1999/archlinux:latest