From 1a862b1efc460453c733f8f44feb55b14f79f6a7 Mon Sep 17 00:00:00 2001 From: Alexis Bruneteau Date: Sat, 31 May 2025 03:38:25 +0200 Subject: [PATCH] fix --- .gitea/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index ccb5738..ed24492 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -26,16 +26,16 @@ jobs: - name: Build Docker image run: | - docker build -t ${{ secrets.REGISTRY_URL }}/hosting-frontend:${{ github.sha }} . - docker tag ${{ secrets.REGISTRY_URL }}/hosting-frontend:${{ github.sha }} ${{ secrets.REGISTRY_URL }}/hosting-frontend:latest + docker build -t ${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USER }}/hosting-frontend:${{ github.sha }} . + docker tag ${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USER }}/hosting-frontend:${{ github.sha }} ${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USER }}/hosting-frontend:latest - name: Login to Container Registry run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${{ secrets.REGISTRY_URL }} -u "${{ secrets.REGISTRY_USER }}" --password-stdin - name: Push Docker image run: | - docker push ${{ secrets.REGISTRY_URL }}/hosting-frontend:${{ github.sha }} - docker push ${{ secrets.REGISTRY_URL }}/hosting-frontend:latest + docker push ${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USER }}/hosting-frontend:${{ github.sha }} + docker push ${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USER }}/hosting-frontend:latest - name: Setup kubectl uses: azure/setup-kubectl@v3