File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 8181 echo "HAS_METAL_ARTIFACT=true" >> $GITHUB_ENV
8282 fi
8383
84- ARTIFACT_FOLDER=$(basename "$GARDENLINUX_KVM_ARTIFACT_URL" | sed 's/.tar.xz//')
85- echo "ARTIFACT_FOLDER=$ARTIFACT_FOLDER" >> $GITHUB_ENV
86-
8784 echo "KVM URL: $GARDENLINUX_KVM_ARTIFACT_URL"
8885 if [ -n "$METAL_ASSET" ]; then
8986 echo "Metal URL: $GARDENLINUX_METAL_ARTIFACT_URL"
9592 run : |
9693 curl -L ${{ env.GARDENLINUX_KVM_ARTIFACT_URL }} -o gardenlinux.tar.xz
9794 tar -xf gardenlinux.tar.xz
95+ echo "Extracted contents:"
96+ ls -la
9897
9998 - name : Download and Extract Gardenlinux Metal Artifact
10099 if : env.HAS_METAL_ARTIFACT == 'true'
@@ -124,7 +123,13 @@ jobs:
124123
125124 - name : Push Image with ORAS (Version Tag)
126125 run : |
127- KVM_RAW_FILE=$(ls ${{ env.ARTIFACT_FOLDER }}/*.raw)
126+ # Find the .raw file dynamically (handles varying folder structures)
127+ KVM_RAW_FILE=$(find . -name "*.raw" -type f | head -1)
128+ if [ -z "$KVM_RAW_FILE" ]; then
129+ echo "Error: Could not find .raw file after extraction"
130+ exit 1
131+ fi
132+ echo "Found KVM raw file: $KVM_RAW_FILE"
128133
129134 # Build the oras push command with required KVM artifact
130135 ORAS_ARGS="$KVM_RAW_FILE:application/vnd.ironcore.image.rootfs.v1alpha1.rootfs"
You can’t perform that action at this time.
0 commit comments