Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: backend-artifacts
path: target/o-neko*-layered.jar
path: target/o-neko-*-layered.jar

containerize-main:
needs: backend
Expand All @@ -74,7 +74,16 @@ jobs:
uses: actions/download-artifact@v4
with:
name: backend-artifacts
path: .

- name: Locate backend JAR
id: find_jar
run: |
jar=$(find . -type f -name '*-layered.jar' -print -quit)
if [ -z "$jar" ]; then
echo "No layered JAR found" >&2
exit 1
fi
echo "jar=$jar" >> $GITHUB_OUTPUT

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -92,5 +101,4 @@ jobs:
push: true
tags: subshellgmbh/o-neko:latest-dev
build-args: |
JAR_FILE=$(ls *-layered.jar)

JAR_FILE=${{ steps.find_jar.outputs.jar }}
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: backend-artifacts
path: target/o-neko*-layered.jar
path: target/o-neko-*-layered.jar

release:
needs: backend
Expand All @@ -70,7 +70,16 @@ jobs:
uses: actions/download-artifact@v4
with:
name: backend-artifacts
path: .

- name: Locate backend JAR
id: find_jar
run: |
jar=$(find . -type f -name '*-layered.jar' -print -quit)
if [ -z "$jar" ]; then
echo "No layered JAR found" >&2
exit 1
fi
echo "jar=$jar" >> $GITHUB_OUTPUT

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -94,4 +103,4 @@ jobs:
subshellgmbh/o-neko:latest
subshellgmbh/o-neko:${{ steps.tag.outputs.tag }}
build-args: |
JAR_FILE=$(ls *-layered.jar)
JAR_FILE=${{ steps.find_jar.outputs.jar }}