Skip to content

Commit

Permalink
Merge pull request #330 from Lodestone-Team/327-beta-core-on-docker
Browse files Browse the repository at this point in the history
Add support for beta prerelease docker builds in actions
  • Loading branch information
pinnouse authored Aug 10, 2023
2 parents 3dd181d + bde0002 commit 873dd44
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/core-release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Core - Release Docker

on:
release:
types: [released]
types: [published]
workflow_dispatch:

env:
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit 873dd44

Please sign in to comment.