From 583ea10e2daab13e3b735bdaceb482b8278a4954 Mon Sep 17 00:00:00 2001 From: nope Date: Sun, 19 May 2024 02:54:39 +0200 Subject: [PATCH] Try kaniko action --- .gitea/workflows/docker.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index f6e8265..1a635d7 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -15,6 +15,8 @@ jobs: steps: - uses: actions/checkout@v3 + fetch-depth: 1 + clean: true - name: Log in to registry uses: docker/login-action@v3 @@ -29,12 +31,17 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - name: Build and push Docker image - uses: docker/build-push-action@v5 + - name: Build image + uses: yinheli/act-kaniko@v1 with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - platforms: | - linux/amd64 + image: ${{ env.IMAGE_NNAME }} + +# - name: Build and push Docker image +# uses: docker/build-push-action@v5 +# with: +# context: . +# push: true +# tags: ${{ steps.meta.outputs.tags }} +# labels: ${{ steps.meta.outputs.labels }} +# platforms: | +# linux/amd64