diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml index 9c4f314..89bf6ac 100644 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -47,13 +47,9 @@ jobs: registry: git.leonardoamaral.com.br - name: Build and push - uses: int128/kaniko-action@v1 - with: - push: true - tags: git.leonardoamaral.com.br/leonardo/vmcli-powershell-container - cache: true - cache-repository: git.leonardoamaral.com.br/leonardo/vmcli-powershell-container-cache - executor: --network webservices gcr.io/kaniko-project/executor:debug + run: | + docker buildx build --cache-from type=local,src=/tmp/.buildx-cache --cache-to type=local,dest=/tmp/.buildx-cache-new,mode=max --load --tag git.leonardoamaral.com.br/leonardo/vmcli-powershell-container:ubi --file Containerfile . + docker push git.leonardoamaral.com.br/leonardo/vmcli-powershell-container:ubi - name: Move cache run: |