From bde00022dc8308ee6f4094d7c232a624d3a556f7 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 9 Aug 2023 14:52:49 -0400 Subject: [PATCH] Add support for beta prerelease docker builds in actions --- .github/workflows/core-release-docker.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/core-release-docker.yml b/.github/workflows/core-release-docker.yml index a07fb3b9..d9b9e1af 100644 --- a/.github/workflows/core-release-docker.yml +++ b/.github/workflows/core-release-docker.yml @@ -2,7 +2,7 @@ name: Core - Release Docker on: release: - types: [released] + types: [published] workflow_dispatch: env: @@ -51,6 +51,12 @@ jobs: id: substring run: echo "version=${VERSION:1}" >> $GITHUB_OUTPUT + - name: set docker version label + env: + LABEL: ${{ !github.event.release.prerelease && 'latest-stable' || 'latest-beta' }} + id: release_type + run: echo "label=${LABEL}" >> $GITHUB_OUTPUT + - name: build and push uses: docker/build-push-action@v3 with: @@ -60,4 +66,7 @@ jobs: build-args: | lodestone_version=${{ steps.release_asset.outputs.version }} push: true - tags: ${{ steps.string_tag.outputs.lowercase }}:latest,${{ steps.string_tag.outputs.lowercase }}:${{ steps.substring.outputs.version }} + tags: | + ${{ steps.string_tag.outputs.lowercase }}:latest + ${{ steps.string_tag.outputs.lowercase }}:${{ steps.release_type.outputs.label }} + ${{ steps.string_tag.outputs.lowercase }}:${{ steps.substring.outputs.version }}