From 80b43ffa72c6a3d51aadc2d3ce7be2b0d0525e53 Mon Sep 17 00:00:00 2001 From: Eugene Dementyev Date: Fri, 14 Jul 2023 22:33:36 +1200 Subject: [PATCH] Use Docker edge tag for commits in main, even untagged --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69e9da13..a6af8464 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,11 +43,12 @@ jobs: images: | willbereplaced tags: | + type=edge,branch=main type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} - name: Build and release - if: startsWith(github.ref, 'refs/tags/') && success() + if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) && success() env: # get tags from the json object and pass as a string-encoded list tags: "${{ toJSON(fromJSON(steps.meta.outputs.json).tags) }}"