add gitea actions
All checks were successful
Build and Push Image / Release (push) Successful in 11s
All checks were successful
Build and Push Image / Release (push) Successful in 11s
This commit is contained in:
@ -2,8 +2,8 @@ name: Build and Push Image
|
||||
on: [ push ]
|
||||
|
||||
env:
|
||||
USERNAME: ai
|
||||
TAG: latest
|
||||
IMAGE_ID: aios
|
||||
IMAGE_NAME: ${{ gitea.repository }}
|
||||
APP_TOKEN: ${{ secrets.APP_TOKEN }}
|
||||
REGISTRY: localhost:8088
|
||||
@ -13,13 +13,14 @@ jobs:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: archlinux
|
||||
image: syui/aios
|
||||
options: --privileged
|
||||
steps:
|
||||
- name: Initialize
|
||||
run: |
|
||||
pacman -Syuu --noconfirm base-devel archiso docker git
|
||||
pacman -Syuu --noconfirm base-devel archiso docker git curl
|
||||
docker pull syui/aios
|
||||
docker tag syui/aios ${{ env.REGISTRY }}/${{ env.USERNAME }}/${{ env.IMAGE_NAME }}:latest
|
||||
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.USERNAME }}/${{ env.IMAGE_NAME }}:latest
|
||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
|
||||
|
||||
|
Reference in New Issue
Block a user