Skip to content

Commit 6f64cfc

Browse files
authored
Merge pull request #17 from rusq/dockerhub-final
finalising dockerhub action
2 parents 90c9125 + 9e0ca58 commit 6f64cfc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/docker.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
types:
66
- published
77

8+
# reference:
9+
# 1. https://docs.docker.com/build/ci/github-actions/push-multi-registries/
10+
# 2. https://github.com/docker/metadata-action?tab=readme-ov-file#typeraw
11+
# 3.
12+
813
jobs:
914
push_to_dockerhub:
1015
name: Push image to dockerhub
@@ -19,6 +24,8 @@ jobs:
1924
tags: |
2025
type=raw,value=latest
2126
type=semver,pattern={{version}}
27+
type=semver,pattern={{major}}.{{minor}}
28+
type=semver,pattern={{major}}
2229
- name: Login to Docker Hub
2330
uses: docker/login-action@v3
2431
with:

0 commit comments

Comments
 (0)