Add Kaniko build check
This commit is contained in:
22
.gitea/workflows/kaniko-check.yaml
Normal file
22
.gitea/workflows/kaniko-check.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: Check Kaniko Build (Safe)
|
||||||
|
on: [push, workflow_dispatch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
kaniko-build:
|
||||||
|
runs-on: macos-m1
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Create Dockerfile
|
||||||
|
run: |
|
||||||
|
echo "FROM alpine" > Dockerfile
|
||||||
|
echo "RUN echo 'Kaniko build successful'" >> Dockerfile
|
||||||
|
|
||||||
|
- name: Build with Kaniko
|
||||||
|
# Kaniko runs as a standalone container for this step
|
||||||
|
uses: docker://gcr.io/kaniko-project/executor:debug
|
||||||
|
with:
|
||||||
|
# --no-push just builds it to verify it works.
|
||||||
|
# To push, you would add --destination registry/image:tag
|
||||||
|
args: --context . --dockerfile Dockerfile --no-push
|
||||||
Reference in New Issue
Block a user