Skip to content

Commit

Permalink
fix ci please
Browse files Browse the repository at this point in the history
Co-authored-by: ⌘WinKey <[email protected]>
  • Loading branch information
CheatCod and Ynng committed Jun 19, 2024
1 parent 595365c commit 84d9752
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/core-release-docker.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
name: Core - Release Docker


on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: "Release tag to download binaries from, must be an existing release"
required: true
type: string
stable:
description: "Is this a stable release?"
required: true
type: boolean


env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -41,7 +52,7 @@ jobs:
regex: true
file: "lodestone_core_*"
target: release/
version: "tags/${{ github.event.release.tag_name }}"
version: "tags/${{ inputs.version || github.ref_name }}"
token: ${{ secrets.GITHUB_TOKEN }}

# https://stackoverflow.com/questions/73402042/github-action-expressions-split-string
Expand All @@ -53,7 +64,7 @@ jobs:

- name: set docker version label
env:
LABEL: ${{ !github.event.release.prerelease && 'latest-stable' || 'latest-beta' }}
LABEL: ${{ (inputs.stable || !github.event.release.prerelease) && 'latest-stable' || 'latest-beta' }}
id: release_type
run: echo "label=${LABEL}" >> $GITHUB_OUTPUT

Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/dashboard-release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: "Release tag to download binaries from, must be an existing release"
required: true
type: string
stable:
description: "Is this a stable release?"
required: true
type: boolean

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -36,7 +45,7 @@ jobs:

- name: set docker version label
env:
LABEL: ${{ !github.event.release.prerelease && 'latest-stable' || 'latest-beta' }}
LABEL: ${{ (inputs.stable || !github.event.release.prerelease) && 'latest-stable' || 'latest-beta' }}
id: release_type
run: echo "label=${LABEL}" >> $GITHUB_OUTPUT

Expand All @@ -50,4 +59,4 @@ jobs:
tags: |
${{ steps.string_tag.outputs.lowercase }}:latest
${{ steps.string_tag.outputs.lowercase }}:${{ steps.release_type.outputs.label }}
${{ steps.string_tag.outputs.lowercase }}:${{ github.event.release.tag_name }}
${{ steps.string_tag.outputs.lowercase }}:${{ inputs.version || github.event.release.tag_name }}

0 comments on commit 84d9752

Please sign in to comment.