From de090d8538da22ddcf294ee8e8ee0966a80507a1 Mon Sep 17 00:00:00 2001 From: Henrik Soerensen Date: Sun, 11 Aug 2024 10:16:06 -0400 Subject: [PATCH] Set image tags (#3) Set image tags with logic that is - latest for main branch - semver for tags - pr-number for pull requests --- .github/workflows/build-legacy-relay.yml | 4 ++++ .github/workflows/build-participation.yml | 4 ++++ .github/workflows/build.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/build-legacy-relay.yml b/.github/workflows/build-legacy-relay.yml index d11b88e..9ce2e04 100644 --- a/.github/workflows/build-legacy-relay.yml +++ b/.github/workflows/build-legacy-relay.yml @@ -36,6 +36,10 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY_IMAGE }} + tags: | + type=raw,value=latest,enable={{is_default_branch}} + type=semver,pattern={{version}} + type=ref,event=pr - name: Rename meta bake definition file run: | diff --git a/.github/workflows/build-participation.yml b/.github/workflows/build-participation.yml index 6b8e841..36d90f1 100644 --- a/.github/workflows/build-participation.yml +++ b/.github/workflows/build-participation.yml @@ -36,6 +36,10 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY_IMAGE }} + tags: | + type=raw,value=latest,enable={{is_default_branch}} + type=semver,pattern={{version}} + type=ref,event=pr - name: Rename meta bake definition file run: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5fe4fae..63d942f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,6 +36,10 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY_IMAGE }} + tags: | + type=raw,value=latest,enable={{is_default_branch}} + type=semver,pattern={{version}} + type=ref,event=pr - name: Rename meta bake definition file run: |