fix: update image repository name in workflow #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Telegram Notify Action | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
tags: ghcr.io/prodreams/actions-telegram-notifier:latest | |
provenance: false | |
notify: | |
runs-on: ubuntu-latest | |
needs: build-and-push | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Run Telegram Notify Action | |
uses: proDreams/actions-telegram-notifier@main | |
with: | |
token: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
chat_id: ${{ secrets.TELEGRAM_CHAT_ID }} | |
status: ${{ job.status }} | |
notify_fields: "actor,repository,workflow" | |
message: "Docker image successfully built and pushed to registry." | |
footer: "Workflow completed" |