Skip to content

Docker Image CI

Docker Image CI #21

Workflow file for this run

name: Docker Image CI
on:
workflow_run:
workflows: [ "Build Action" ]
branches: [ master ]
types:
- completed
jobs:
docker-image:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build image
run: docker build . --file Dockerfile --tag chapvic/telegram-notify:latest
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push image
run: docker push chapvic/telegram-notify:latest
- name: Send notification
uses: chapvic/telegram-notify@master
if: always()
with:
chat: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
status: ${{ job.status }}