fix
All checks were successful
Build and Push Image / Release (push) Successful in 9m2s

This commit is contained in:
syui 2024-03-05 12:42:20 +09:00
parent 296e9b2f29
commit 22bcc9f6e1
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

View File

@ -2,8 +2,8 @@ name: Build and Push Image
on: [ push ] on: [ push ]
env: env:
USERNAME: ai
TAG: latest TAG: latest
IMAGE_ID: aios
IMAGE_NAME: ${{ gitea.repository }} IMAGE_NAME: ${{ gitea.repository }}
APP_TOKEN: ${{ secrets.APP_TOKEN }} APP_TOKEN: ${{ secrets.APP_TOKEN }}
REGISTRY: localhost:8088 REGISTRY: localhost:8088
@ -20,6 +20,6 @@ jobs:
run: | run: |
pacman -Syuu --noconfirm base-devel archiso docker git pacman -Syuu --noconfirm base-devel archiso docker git
docker pull syui/aios 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 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 }}