Try kaniko action
Build and publish Docker image / build (push) Failing after 7s Details

This commit is contained in:
nope 2024-05-19 02:54:39 +02:00
parent f90a98c4f9
commit 583ea10e2d
1 changed files with 15 additions and 8 deletions

View File

@ -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