This commit is contained in:
syui 2024-02-12 10:32:37 +09:00
parent dab6f6dfa2
commit e46dd861a6
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

View File

@ -1,7 +1,6 @@
name: release name: release
on: on:
workflow_dispatch:
push: push:
branches: branches:
- main - main
@ -26,7 +25,17 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: | run: |
pacman -Syuu --noconfirm base-devel archiso docker pacman -Syuu --noconfirm base-devel archiso docker
./build.zsh gh git clone https://gitlab.archlinux.org/archlinux/archiso
cp -rf ./cfg/profiledef.sh ./archiso/configs/$a/profiledef.sh
cp -rf ./scpt/mkarchiso ./archiso/archiso/mkarchiso
./archiso/archiso/mkarchiso -v -o ./ ./archiso/configs/releng
tar xf aios-bootstrap*.tar.gz
echo -e 'Server = http://mirrors.cat.net/archlinux/$repo/os/$arch\nServer = https://geo.mirror.pkgbuild.com/$repo/os/$arch' >> ./root.x86_64/etc/pacman.d/mirrorlist
sed -i s/CheckSpace/#CheckeSpace/ root.x86_64/etc/pacman.conf
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --init'
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --populate archlinux'
arch-chroot root.x86_64 /bin/sh -c 'pacman -Syu --noconfirm base base-devel linux vim git zsh rust openssh openssl jq'
arch-chroot root.x86_64 /bin/sh -c 'git clone https://git.syui.ai/ai/bot && cd bot && cargo build && cp -rf ./target/debug/ai /bin/ && ai ai'
mv *.tar.gz ./aios-bootstrap.tar.gz mv *.tar.gz ./aios-bootstrap.tar.gz
systemctl start docker systemctl start docker
docker login -u=$DOCKER_USER -p=$DOCKER_PASSWORD docker login -u=$DOCKER_USER -p=$DOCKER_PASSWORD