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