os/.gitea/workflows/release.yml

35 lines
952 B
YAML
Raw Normal View History

2024-02-21 13:45:41 +00:00
name: Build and Push Image
on: [ push ]
env:
USERNAME: ai
IMAGE_NAME: ${{ gitea.repository }}
APP_TOKEN: ${{ secrets.APP_TOKEN }}
REGISTRY: localhost:8088
jobs:
release:
name: Release
runs-on: ubuntu-latest
container:
2024-03-05 02:33:47 +00:00
image: archlinux
2024-02-21 13:45:41 +00:00
options: --privileged
steps:
2024-03-05 02:33:47 +00:00
- name: Checkout
uses: actions/checkout@v4
2024-02-21 13:45:41 +00:00
- name: Initialize
run: |
2024-03-05 02:33:47 +00:00
pacman -Syuu --noconfirm base-devel archiso docker git
2024-03-05 03:20:14 +00:00
docker pull syui/aios
docker tag syui/aios ${{ env.REGISTRY }}/${{ env.USERNAME }}/${{ env.IMAGE_NAME }}:latest
2024-02-21 13:45:41 +00:00
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: syui
password: ${{ env.APP_TOKEN }}
- name: github container registry
run: |
2024-03-05 03:20:14 +00:00
docker push ${{ env.REGISTRY }}/${{ env.USERNAME }}/${{ env.IMAGE_NAME }}:latest