From d32761fe07c6f1b503ca691313a3b7616b57e4a7 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Mon, 24 Jul 2023 15:01:39 +0200 Subject: [PATCH] edge docker release --- .github/workflows/docker.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index c92a634..3053dd4 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -64,16 +64,12 @@ jobs: ${{ env.NAMESPACE_DOCKER }}/${{ env.IMAGE_NAME }} ghcr.io/${{ env.NAMESPACE_GITHUB }}/${{ env.IMAGE_NAME }} tags: | - # - # minimal (short sha), enable f desired - # type=sha,enable=true,priority=100,prefix=commit-,suffix=,format=short - # set latest tag for default branch - type=raw,value=latest,enable={{is_default_branch}} - # - # tag w/ full tag part of git tag: - # only present for `on.push.tags` ! + # When pushing a tag, release a tagged release :x.x.x type=semver,pattern={{raw}},enable=true - # type=edge,branch=develop # usually this would be the develop branch + # When pushing a tag (type=semver) push to :latest too + type=semver,value=latest + # When pushing to main branch, release as :edge + type=edge,branch=main - name: Build and push main docker images uses: docker/build-push-action@v4.0.0