From 2980229aaea368b97df0433058158adcc631e0ff Mon Sep 17 00:00:00 2001 From: Espen Hagen <2492641+espenhgn@users.noreply.github.com> Date: Wed, 2 Oct 2024 21:58:23 +0200 Subject: [PATCH] tag pattern --- .github/workflows/container_build_push.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/container_build_push.yml b/.github/workflows/container_build_push.yml index 4ce4e01..08d41d1 100644 --- a/.github/workflows/container_build_push.yml +++ b/.github/workflows/container_build_push.yml @@ -93,10 +93,15 @@ jobs: images: | ghcr.io/${{ github.repository_owner }}/container_template tags: | - type=semver,pattern={{version}} + type=schedule type=ref,event=branch + type=ref,event=pr + type=pep440,pattern={{version}} + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} type=sha - type=raw,value=latest,enable={{is_default_branch}} + type=raw,value=latest,enable={{is_default_branch}} - name: Build and push Apptainer container run: | tags="${{ steps.meta.outputs.tags }}"