gitea
Some checks failed
release / Release (push) Failing after 58s

This commit is contained in:
2026-02-27 18:31:46 +09:00
parent 9eeabc1fd7
commit 8b9c999543

View File

@@ -1,4 +1,4 @@
name: build and push image
name: release
on:
schedule:
@@ -7,7 +7,6 @@ on:
env:
TAG: latest
IMAGE_ID: aios
IMAGE_NAME: ${{ gitea.repository }}
APP_TOKEN: ${{ secrets.APP_TOKEN }}
REGISTRY: localhost:8088
@@ -17,13 +16,21 @@ jobs:
name: Release
runs-on: ubuntu-latest
container:
image: ghcr.io/syui/aios
image: archlinux
options: --privileged
steps:
- name: Pull and re-tag image
- 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: |
pacman -Sy --noconfirm docker
docker pull ghcr.io/syui/aios
docker tag ghcr.io/syui/aios ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
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 }}