Skip to content

Commit 5e15a5a

Browse files
committed
.github: fix artifact names: name-oci-arch-suffix, and summary text
Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 8c5b4a8 commit 5e15a5a

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/build-push.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,16 @@ jobs:
9898
run: |
9999
SFX=${{ steps.vars.outputs.sfx }}
100100
for file in *.tar.gz; do
101-
name=$(basename ${file} .tar.gz)
102-
echo "Found: $name"
101+
fn=$(basename ${file} .tar.gz)
102+
name=${fn-*}
103+
arch=${fn##*-}
104+
echo "Found: $name arch: $arch"
103105
tar xf ${file}
104-
mv ${name}/rootfs-oci ${name}-oci${SFX}
105-
tar cfz ${name}-oci.tar.gz ${name}-oci${SFX}
106+
rm -f ${file}
107+
mv ${fn}/rootfs-oci ${name}-oci-${arch}${SFX}
108+
tar cfz ${name}-oci-${arch}${SFX}.tar.gz ${name}-oci-${arch}${SFX}
106109
done
107-
ls -la *-oci${SFX}/
110+
ls -la *-oc*i${SFX}/
108111
ls -l *.tar.gz
109112
- name: Log in to registry
110113
run: |
@@ -133,8 +136,8 @@ jobs:
133136
- name: Summary
134137
run: |
135138
cat <<EOF >> $GITHUB_STEP_SUMMARY
136-
# Edge Build of ${{ inputs.app }} Complete! :rocket:
139+
# Build of ${{ inputs.app }}, version ${{ steps.vars.outputs.ver }}, Complete! :rocket:
137140
138141
For the public download links of these build artifacts, please see:
139-
<https://github.com/kernelkit/curiOS/releases/tag/edge>
142+
<https://github.com/kernelkit/curiOS/releases/tag/${{ steps.vars.outputs.ver }}>
140143
EOF

0 commit comments

Comments
 (0)