Files
runner-check/.gitea/workflows/kaniko-check.yaml
Administrator 19d770bf9c
Some checks failed
Check Container Build Capability / check-build (push) Failing after 0s
Check Kaniko Build (Safe) / kaniko-build (push) Failing after 2s
Verify Mac Runner / verify-runner (push) Successful in 0s
Install Node.js manually instead of using container
2025-12-29 20:23:29 -06:00

29 lines
850 B
YAML

name: Check Kaniko Build (Safe)
on: [push, workflow_dispatch]
jobs:
kaniko-build:
runs-on: macos-m1
steps:
- name: Install Dependencies
run: |
if [ -f /etc/alpine-release ]; then
apk add --no-cache nodejs git
fi
- 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