Publish container image only from `main` branch

This commit is contained in:
Michał Rudowicz 2025-02-23 20:34:37 +01:00
parent af6bef013d
commit 0b57f6b2dd
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,5 @@
on:
push:
branches:
- main
jobs:
build_website:
runs-on: docker
@ -16,6 +14,7 @@ jobs:
path: _site/
build_and_push_container:
runs-on: docker
if: github.ref == 'refs/heads/main'
env:
REGISTRY_OWNER: fleg
container: