From a90952993939e1b069afe1f3c59ef151a984c745 Mon Sep 17 00:00:00 2001 From: Nazarii Denha Date: Mon, 1 Jul 2024 11:38:37 +0200 Subject: [PATCH] push ref name on push tag or push latest tag on publishing release --- .github/workflows/docker.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 00a81a6d7a4d..64c415b6f36f 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -6,7 +6,6 @@ on: - '*' release: types: [published] - workflow_dispatch: jobs: build-and-push: @@ -24,8 +23,10 @@ jobs: with: images: scrolltech/l2geth tags: | - type=semver,pattern={{version}},enable=${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} + type=ref,event=tag,enable=${{ github.event_name == 'push' }} type=raw,value=latest,enable=${{ github.event_name == 'release' }} + flavor: | + latest=false - name: Login to Docker Hub uses: docker/login-action@v2 with: