From 3430bcd712e98add677ece4a59ccfeeef7519539 Mon Sep 17 00:00:00 2001 From: HilkopterBob Date: Fri, 16 Aug 2024 08:38:02 +0200 Subject: [PATCH] ci: build main container only on published releases & add branch name to unstable containers as docker tag --- .github/workflows/build-docker-container.yml | 4 ++-- .github/workflows/unstable-build-docker-container.yml | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-docker-container.yml b/.github/workflows/build-docker-container.yml index ba2df07..52f4967 100644 --- a/.github/workflows/build-docker-container.yml +++ b/.github/workflows/build-docker-container.yml @@ -1,8 +1,8 @@ name: docker-build on: - push: - branches: ["master"] + release: + types: [published] jobs: docker: diff --git a/.github/workflows/unstable-build-docker-container.yml b/.github/workflows/unstable-build-docker-container.yml index a7215a8..a3f1488 100644 --- a/.github/workflows/unstable-build-docker-container.yml +++ b/.github/workflows/unstable-build-docker-container.yml @@ -2,7 +2,6 @@ name: unstable-docker-build on: push: - branches: ["devel"] jobs: docker: @@ -19,4 +18,4 @@ jobs: uses: docker/build-push-action@v6 with: push: true - tags: hilkopterbob/packagelock-unstable:latest + tags: hilkopterbob/packagelock-unstable:${{ env.BRANCH }}