fix
This commit is contained in:
43
.github/workflows/release.yml
vendored
Normal file
43
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
name: release
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
push:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: archlinux:base
|
||||
options: --privileged
|
||||
steps:
|
||||
- name: restore pacman cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: /var/cache/pacman/pkg
|
||||
key: pacman-cache-${{ github.workflow }}-build
|
||||
|
||||
- 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: |
|
||||
./build.zsh
|
||||
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
|
Reference in New Issue
Block a user