From da0022b6627c979ff99f44b0eb433d86312e6b61 Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 5 Mar 2024 09:33:55 +0900 Subject: [PATCH] fix --- .gitea/workflows/release.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index ab06325..7380475 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -2,9 +2,10 @@ name: Build and Push Image on: [ push ] env: + USERNAME: ai IMAGE_NAME: ${{ gitea.repository }} - GITHUB_TOKEN: ${{ secrets.APP_TOKEN }} - REGISTRY: git.syui.ai + APP_TOKEN: ${{ secrets.APP_TOKEN }} + REGISTRY: localhost:8088 jobs: release: @@ -37,15 +38,15 @@ jobs: arch-chroot root.x86_64 /bin/sh -c 'chsh -s /bin/zsh' arch-chroot root.x86_64 /bin/sh -c 'git clone https://git.syui.ai/ai/bot && cd bot && cargo build && cp -rf ./target/debug/ai /bin/ && ai ai' tar -zcvf aios-bootstrap.tar.gz root.x86_64/ - tar -C ./root.x86_64 -c . | docker import - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tar -C ./root.x86_64 -c . | docker import - ${{ env.REGISTRY }}/${{ env.USERNAME }}/${{ env.IMAGE_NAME }} - name: Log in to the Container registry uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} - username: ${{ gitea.actor }} - password: ${{ env.GITHUB_TOKEN }} + username: syui + password: ${{ env.APP_TOKEN }} - name: github container registry run: | - docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + docker push ${{ env.REGISTRY }}/${{ env.USERNAME }}/${{ env.IMAGE_NAME }}