build on every push or PR to main

This commit is contained in:
Ralf Vogler 2023-08-17 16:30:12 +02:00
parent 08fc59520c
commit 13def8ba18

View file

@ -1,14 +1,16 @@
name: Build and push Docker image (amd64, arm64 to hub.docker.com and ghcr.io)
on:
workflow_dispatch:
push:
branches:
- "main"
workflow_dispatch: # allow manual trigger
# https://github.com/orgs/community/discussions/26276
push: # on every branch, but not for PRs from forks?
paths-ignore:
- ".github/**"
- ".gitignore"
- "README.md"
pull_request: # includes PRs from forks but only triggers on creation, not pushes?
branches:
- "main" # only PRs against main
jobs:
docker: