From 956368ce3c7ca140bf46182365be3874e5b211fe Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Sat, 29 Jul 2023 18:09:30 -0700 Subject: [PATCH] enable latest tag for main flavor and tag. fixes #200 --- .github/workflows/{build.yaml => docker.yaml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{build.yaml => docker.yaml} (98%) diff --git a/.github/workflows/build.yaml b/.github/workflows/docker.yaml similarity index 98% rename from .github/workflows/build.yaml rename to .github/workflows/docker.yaml index baa4cbe0..74ffa0b6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/docker.yaml @@ -49,7 +49,7 @@ jobs: with: flavor: | # only latest if push has a tag and we're building the "main" flavor - latest=${{ github.event_name == 'push' && matrix.flavor == 'main' && contains(github.ref, 'refs/tags/') }} + latest=${{ github.event_name == 'push' && matrix.flavor == 'main' && github.ref_type == 'tag' }} tags: | # if this is a tag'd build, prefix it with the flavor (eg. main-v1.2.3 and sandbox-v1.2.3) type=ref,event=tag,prefix=${{ matrix.flavor }}-