mirror of
https://github.com/Mexit/AlpDock.git
synced 2025-04-26 15:59:53 +03:00
Add iso with podman
This commit is contained in:
parent
e055216863
commit
3c7192f3fb
4 changed files with 148 additions and 16 deletions
22
.github/workflows/build_iso.yml
vendored
22
.github/workflows/build_iso.yml
vendored
|
@ -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') }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue