File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 uses : actions/upload-artifact@v4
6262 with :
6363 name : backend-artifacts
64- path : target/o-neko*-layered.jar
64+ path : target/o-neko- *-layered.jar
6565
6666 containerize-main :
6767 needs : backend
7474 uses : actions/download-artifact@v4
7575 with :
7676 name : backend-artifacts
77- path : .
77+
78+ - name : Locate backend JAR
79+ id : find_jar
80+ run : |
81+ jar=$(find . -type f -name '*-layered.jar' -print -quit)
82+ if [ -z "$jar" ]; then
83+ echo "No layered JAR found" >&2
84+ exit 1
85+ fi
86+ echo "jar=$jar" >> $GITHUB_OUTPUT
7887
7988 - name : Set up Docker Buildx
8089 uses : docker/setup-buildx-action@v3
92101 push : true
93102 tags : subshellgmbh/o-neko:latest-dev
94103 build-args : |
95- JAR_FILE=$(ls *-layered.jar)
96-
104+ JAR_FILE=${{ steps.find_jar.outputs.jar }}
Original file line number Diff line number Diff line change 5858 uses : actions/upload-artifact@v4
5959 with :
6060 name : backend-artifacts
61- path : target/o-neko*-layered.jar
61+ path : target/o-neko- *-layered.jar
6262
6363 release :
6464 needs : backend
7070 uses : actions/download-artifact@v4
7171 with :
7272 name : backend-artifacts
73- path : .
73+
74+ - name : Locate backend JAR
75+ id : find_jar
76+ run : |
77+ jar=$(find . -type f -name '*-layered.jar' -print -quit)
78+ if [ -z "$jar" ]; then
79+ echo "No layered JAR found" >&2
80+ exit 1
81+ fi
82+ echo "jar=$jar" >> $GITHUB_OUTPUT
7483
7584 - name : Set up Docker Buildx
7685 uses : docker/setup-buildx-action@v3
94103 subshellgmbh/o-neko:latest
95104 subshellgmbh/o-neko:${{ steps.tag.outputs.tag }}
96105 build-args : |
97- JAR_FILE=$(ls *-layered. jar)
106+ JAR_FILE=${{ steps.find_jar.outputs. jar }}
You can’t perform that action at this time.
0 commit comments