Files
os/.gitea/workflows/release.yml
syui aba868b048
All checks were successful
release / Release (push) Successful in 6m55s
fix gitea
2026-02-27 18:49:19 +09:00

29 lines
748 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: ghcr.io/syui/aios
options: --privileged
steps:
- name: Pull and 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 }}
echo "${{ env.APP_TOKEN }}" | docker login ${{ env.REGISTRY }} -u syui --password-stdin
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}