From 0925837b489034e9c7a5e16279dea46ecae8a621 Mon Sep 17 00:00:00 2001 From: Leonardo Amaral Date: Fri, 26 Jul 2024 19:34:12 -0300 Subject: [PATCH] Replace buildx to kaniko Signed-off-by: Leonardo Amaral --- .gitea/workflows/build-and-push.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml index df17c06..9c4f314 100644 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -45,19 +45,16 @@ jobs: username: ${{ vars.PAT_USER }} password: ${{ secrets.PAT_TOKEN}} registry: git.leonardoamaral.com.br - + - name: Build and push - uses: docker/build-push-action@v5 + uses: int128/kaniko-action@v1 with: - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - context: . - file: ./Containerfile - platforms: linux/amd64 push: true tags: git.leonardoamaral.com.br/leonardo/vmcli-powershell-container - network: webservices - + cache: true + cache-repository: git.leonardoamaral.com.br/leonardo/vmcli-powershell-container-cache + executor: --network webservices gcr.io/kaniko-project/executor:debug + - name: Move cache run: | rm -rf /tmp/.buildx-cache