Skip to content

Commit 2f529bd

Browse files
authored
Merge pull request #15 from rusq/dockerhub-fix1
smort dickerhub GHA
2 parents 55a0ae7 + 402e7d9 commit 2f529bd

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/docker.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ jobs:
1010
name: Push image to dockerhub
1111
runs-on: ubuntu-latest
1212
steps:
13+
- name: Docker meta
14+
id: meta
15+
uses: docker/metadata-action@v5
16+
with:
17+
images:
18+
ffffuuu/aklapi
19+
tags: |
20+
type=raw,label=latest
21+
type=semver,pattern={{version}}
1322
- name: Login to Docker Hub
1423
uses: docker/login-action@v3
1524
with:
@@ -19,6 +28,5 @@ jobs:
1928
uses: docker/build-push-action@v6
2029
with:
2130
push: true
22-
tags: |
23-
ffffuuu/aklapi:latest
24-
ffffuuu/aklapi:${{ github.ref }}
31+
tags: ${{ steps.meta.outputs.tags }}
32+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)