Skip to content
name: Build and Push Docker image on Release

Check failure on line 1 in .github/workflows/docker-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-publish.yml

Invalid workflow file

Workflow 'Build and Push Docker image on Release' cannot listen to itself.
on:
workflow_run:
workflows: ["Build and Push Docker image on Release"]
types:
- completed
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./src/Dockerfile
push: true
tags: |
dzarlax/todoist_bot:latest
dzarlax/todoist_bot:${{ github.event.release.tag_name }}