Skip to content

Commit

Permalink
Merge pull request #389 from Lodestone-Team/fix/githubactions-docker
Browse files Browse the repository at this point in the history
Fix/githubactions docker
  • Loading branch information
CheatCod committed Jun 18, 2024
2 parents 6b20172 + e30ab35 commit 9914ce6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/core-release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: build and push
uses: docker/build-push-action@v3
with:
context: .
context: ./core
platforms: linux/amd64,linux/arm64
file: ./githubactions.Dockerfile
build-args: |
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/dashboard-release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ jobs:
with:
string: ${{ env.REGISTRY}}/${{ env.IMAGE_NAME }}

# https://stackoverflow.com/questions/73402042/github-action-expressions-split-string
- name: set version string
env:
VERSION: ${{ steps.release_asset.outputs.version }}
id: substring
run: echo "version=${VERSION:1}" >> $GITHUB_OUTPUT

- name: set docker version label
env:
LABEL: ${{ !github.event.release.prerelease && 'latest-stable' || 'latest-beta' }}
Expand All @@ -50,13 +43,11 @@ jobs:
- name: build and push
uses: docker/build-push-action@v3
with:
context: .
context: ./dashboard
platforms: linux/amd64,linux/arm64
file: ./Dockerfile
build-args: |
lodestone_version=${{ steps.release_asset.outputs.version }}
push: true
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 }}
${{ steps.string_tag.outputs.lowercase }}:${{ github.event.release.tag_name }}

0 comments on commit 9914ce6

Please sign in to comment.