From 61db4438f6f6167c7e186fc58293e97cd294c2a3 Mon Sep 17 00:00:00 2001 From: Conlan Cesar Date: Wed, 16 Oct 2024 20:58:17 -0400 Subject: [PATCH] Fix image tagging --- .github/workflows/docker-publish.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml index 4068600db..05d472656 100644 --- a/.github/workflows/docker-publish.yaml +++ b/.github/workflows/docker-publish.yaml @@ -12,8 +12,6 @@ env: jobs: build-minrobot: runs-on: ubuntu-latest - env: - FLAVOR: "" steps: - name: Prepare run: | @@ -34,13 +32,13 @@ jobs: images: ${{ env.REGISTRY_IMAGE }} tags: | # branch event - type=ref,enable=true,prefix=${{ env.flavor }},event=branch + type=ref,enable=true,prefix=,event=branch # tag event - type=ref,enable=true,prefix=${{ env.flavor }},event=tag + type=ref,enable=true,prefix=,event=tag # pull request event - type=ref,enable=true,prefix=${{ env.flavor }}pr-,suffix=,event=pr + type=ref,enable=true,prefix=pr-,suffix=,event=pr # commit sha - type=sha,prefix=${{ env.flavor }},suffix=,format=short + type=sha,prefix=,suffix=,format=short - name: Login to Docker Hub uses: docker/login-action@v3 @@ -93,7 +91,7 @@ jobs: # tag event type=ref,enable=true,suffix=${{ env.FLAVOR }},event=tag # pull request event - type=ref,enable=true,suffix=pr-,suffix=${{ env.FLAVOR }},event=pr + type=ref,enable=true,prefix=pr-,suffix=${{ env.FLAVOR }},event=pr # commit sha type=sha,prefix=,suffix=${{ env.FLAVOR }},format=short