os/.gitea/workflows/release.yml
syui b6d99c3e20
Some checks failed
Build and Push Image / Release (push) Failing after 2s
add gitea actions
2024-03-05 13:09:56 +09:00

25 lines
659 B
YAML

name: Build and Push Image
on: [ push ]
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: |
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 }}