From 9e0ca58bceb23cd39893357d56d85a32e5c93f43 Mon Sep 17 00:00:00 2001 From: Rustam Gilyazov <16064414+rusq@users.noreply.github.com> Date: Tue, 9 Jul 2024 22:18:54 +1000 Subject: [PATCH] finalising dockerhub action --- .github/workflows/docker.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 64a9764..47e2a6f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -5,6 +5,11 @@ on: types: - published +# reference: +# 1. https://docs.docker.com/build/ci/github-actions/push-multi-registries/ +# 2. https://github.com/docker/metadata-action?tab=readme-ov-file#typeraw +# 3. + jobs: push_to_dockerhub: name: Push image to dockerhub @@ -19,6 +24,8 @@ jobs: tags: | type=raw,value=latest type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} - name: Login to Docker Hub uses: docker/login-action@v3 with: