Add iso with podman

This commit is contained in:
MexIT 2024-12-20 12:13:03 +01:00
parent e055216863
commit 3c7192f3fb
4 changed files with 148 additions and 16 deletions

View file

@ -38,26 +38,20 @@ jobs:
cd aports/scripts/
./mkimage.sh \
--tag ${version} \
--tag ${version}-$(date +%y%m%d) \
--arch x86_64 \
--profile docker \
--outdir ../../ \
--repository https://dl-cdn.alpinelinux.org/alpine/v${version}/main \
--repository https://dl-cdn.alpinelinux.org/alpine/v${version}/community
- name: Change ISO name
run: |
date=$(date +%y%m%d)
for file in *.iso; do
if [[ -f "$file" ]]; then
filename="$file"
ver=$(echo "$filename" | grep -oE '[0-9]+\.[0-9]+')
if [ -n "$ver" ]; then
new_filename=$(echo "$filename" | sed "s/$ver/$ver-$date/")
mv "$filename" "$new_filename"
fi
fi
done
./mkimage.sh \
--tag ${version}-$(date +%y%m%d) \
--arch x86_64 \
--profile podman \
--outdir ../../ \
--repository https://dl-cdn.alpinelinux.org/alpine/v${version}/main \
--repository https://dl-cdn.alpinelinux.org/alpine/v${version}/community
- name: Upload ISO
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }}