From f23a6b672ba03f02755b9a20eb192d2f44694f5a Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 17 Aug 2024 23:25:58 +0700 Subject: [PATCH] fix: imagename --- .gitea/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 2836cc8..380f6be 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -13,16 +13,16 @@ jobs: else BASE_URL="${{ gitea.ref_name }}.$(tr / '\n' <<< "${{ gitea.repository }}" | tac | tr '\n' .)k8s.gmoker.com" fi + REGISTRY="$(sed 's .*:// ' <<< ${{ gitea.server_url }})" cat <> .env BASE_URL="$BASE_URL" - REGISTRY="$(sed 's .*:// ' <<< ${{ gitea.server_url }})" + REGISTRY="$REGISTRY" IMAGEAPP="$REGISTRY/${{ gitea.repository }}:${{ gitea.ref_name }}" EOF cat .env - uses: actions/kaniko@v1 with: - dockerfile: debian/Dockerfile password: "${{ secrets.PKGRW }}" - uses: actions/k8sdeploy@v1