2024-02-12 01:18:52 +00:00
|
|
|
name: release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-02-12 01:21:19 +00:00
|
|
|
branches:
|
2024-02-12 01:18:52 +00:00
|
|
|
- main
|
2024-02-12 01:21:19 +00:00
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
2024-02-12 01:18:52 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: archlinux:base
|
|
|
|
options: --privileged
|
|
|
|
|
|
|
|
- name: install
|
|
|
|
run: pacman -Syyu --noconfirm archiso docker
|
|
|
|
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
env:
|
|
|
|
DOCKER_USER: ${{ secrets.DOCKER_USER }}
|
|
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
run: |
|
2024-02-12 01:21:19 +00:00
|
|
|
./build.zsh gh
|
2024-02-12 01:18:52 +00:00
|
|
|
systemctl start docker
|
|
|
|
docker login -u=$DOCKER_USER -p=$DOCKER_PASSWORD
|
|
|
|
tar -C ./root.x86_64 -c . | docker import - syui/aios
|
|
|
|
docker push syui/aios
|
|
|
|
|
|
|
|
- name: bootstrap
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: aios-bootstrap
|
|
|
|
path: ./*.tar.gz
|