os/.gitea/workflows/release.yml
syui 0d159171dc
All checks were successful
build and push image / Release (push) Successful in 17m1s
fix actions
2024-04-14 05:05:47 +09:00

35 lines
826 B
YAML

name: build and push image
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
paths:
- '!README.md'
env:
TAG: latest
IMAGE_ID: aios
IMAGE_NAME: ${{ gitea.repository }}
APP_TOKEN: ${{ secrets.APP_TOKEN }}
REGISTRY: localhost:8088
jobs:
release:
name: Release
runs-on: ubuntu-latest
container:
image: syui/aios
options: --privileged
steps:
- name: Initialize
run: |
pacman -Syuu --noconfirm base-devel archiso docker git curl
docker pull syui/aios
docker tag 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 }}