update claude
Some checks failed
build and push image / Release (push) Failing after 12m2s

This commit is contained in:
2025-06-07 01:22:13 +09:00
parent 591c34b61b
commit 21cd1ef16e
7 changed files with 649 additions and 66 deletions

View File

@ -1,5 +1,17 @@
#!/bin/zsh
# Platform-specific commands
case $OSTYPE in
darwin*)
sed_inplace() { sed -i '' "$@"; }
date_cmd() { gdate "$@"; }
;;
linux*)
sed_inplace() { sed -i "$@"; }
date_cmd() { date "$@"; }
;;
esac
d=${0:a:h}
dd=${0:a:h:h}
@ -56,6 +68,10 @@ yml_c=' tar -C ./root.x86_64 -c . | docker import - ${{ env.IMAGE_NAME
aios-bootstrap.tar.gz
'
# Update version in os-release
current_date=$(date_cmd +%Y.%m.%d)
sed_inplace "s/IMAGE_VERSION=.*/IMAGE_VERSION=$current_date/" $dd/cfg/os-release
yml_b=`cat $dd/build.zsh |sed '1d'`
echo $yml_a >! $dd/cfg/gh-actions.yml