Skip to content

Commit

Permalink
Fix image tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroCC committed Oct 17, 2024
1 parent 70f183d commit 61db443
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ env:
jobs:
build-minrobot:
runs-on: ubuntu-latest
env:
FLAVOR: ""
steps:
- name: Prepare
run: |
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 61db443

Please sign in to comment.