Skip to content

Commit d82055f

Browse files
committed
chore: update action
1 parent e003d8f commit d82055f

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

.github/workflows/generate-release.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ env:
99
REGISTRY: docker.io
1010
IMAGE_NAME: ${{ github.repository }}
1111
platforms: linux/amd64,linux/arm64
12+
DEFAULT_TYPE: "external"
1213

1314
jobs:
1415
build-and-push-image:
@@ -48,34 +49,19 @@ jobs:
4849
with:
4950
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5051
tags: |
52+
type=semver,pattern={{version}},enable=${{ matrix.type == env.DEFAULT_COMBINATION }}
53+
type=semver,pattern={{version}}-${{ matrix.type }},priority=500
54+
type=raw,value=latest,enable=${{ matrix.type == env.DEFAULT_COMBINATION }}
5155
type=sha
5256
53-
- name: Extract metadata (tags, labels) for Docker
54-
id: tagging
55-
uses: HackerHappyHour/tagging-strategy@v3
56-
with:
57-
image_name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
58-
tag_name: ${{ github.event.release.tag_name }}
59-
tags: |
60-
%X%-${{ matrix.type}}
61-
%X.Y%-${{ matrix.type}}
62-
%X.Y.Z%-${{ matrix.type}}
63-
extra_tags: |
64-
latest::${{ matrix.type == 'external'}}
65-
%X%::${{ matrix.type == 'external'}}
66-
%X.Y%::${{ matrix.type == 'external'}}
67-
%X.Y.Z%::${{ matrix.type == 'external'}}
68-
6957
- name: Build and push Docker image
7058
uses: docker/build-push-action@v6
7159
with:
7260
context: .
7361
file: Dockerfile.${{ matrix.type }}
7462
platforms: ${{ env.platforms }}
7563
push: true
76-
tags: |
77-
${{ steps.tagging.outputs.tags }}
78-
${{ steps.meta.outputs.tags }}
64+
tags: ${{ steps.meta.outputs.tags }}
7965
labels: ${{ steps.meta.outputs.labels }}
8066

8167
- name: Version output

0 commit comments

Comments
 (0)