From 007bf66b5e96a135191e8fd605db8cc8d27bc81d Mon Sep 17 00:00:00 2001 From: Lavender Shannon Date: Wed, 22 Mar 2023 17:31:47 -0500 Subject: [PATCH] Updated tags for generated docker images --- .github/workflows/docker-build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 5c140af2..c5d7f6dc 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -59,8 +59,15 @@ jobs: uses: docker/metadata-action@v4.3.0 with: images: ${{ env.REGISTRY }}/wildmountainfarms/${{ matrix.data.image-name }} + # expressions: https://docs.github.com/en/actions/learn-github-actions/expressions tags: | - type=raw,value=edge,enable=${{ github.ref == 'refs/heads/master' }} + # in our case {{major}} is actually a year, so it's not really signifying a major release + type=semver,pattern={{major}}.{{minor}}.{{patch}} + type=semver,pattern={{major}}.{{minor}} + type=raw,value=latest,priority=750,enable=${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'rc') && !contains(github.ref, 'beta') }} + type=raw,value=beta,priority=750,enable=${{ startsWith(github.ref, 'refs/tags/') && (contains(github.ref, 'rc') || contains(github.ref, 'beta')) }} + type=edge,branch=master + type=sha,format=short # https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys labels: | maintainer=retrodaredevil