Files
os/.gitea/workflows/release.yml
syui 8b9c999543
Some checks failed
release / Release (push) Failing after 58s
gitea
2026-02-27 18:31:46 +09:00

37 lines
954 B
YAML

name: release
on:
schedule:
- cron: '0 0 * * *'
push:
env:
TAG: latest
IMAGE_NAME: ${{ gitea.repository }}
APP_TOKEN: ${{ secrets.APP_TOKEN }}
REGISTRY: localhost:8088
jobs:
release:
name: Release
runs-on: ubuntu-latest
container:
image: archlinux
options: --privileged
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install build dependencies
run: pacman -Sy --noconfirm arch-install-scripts zsh docker
- name: Build aios
run: zsh ./build.zsh
- name: Push to local registry
run: |
tar -C ./root.x86_64 -c . | docker import - ${{ env.IMAGE_NAME }}
docker tag ${{ env.IMAGE_NAME }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
echo "${{ env.APP_TOKEN }}" | docker login ${{ env.REGISTRY }} -u syui --password-stdin
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}