Files
runner-check/.gitea/workflows/kaniko-check.yaml
Administrator 05391a1af3
Some checks failed
Check Container Build Capability / check-build (push) Failing after 0s
Check Kaniko Build (Safe) / kaniko-build (push) Failing after 1s
Verify Mac Runner / verify-runner (push) Successful in 0s
Download and run Kaniko binary directly
2025-12-29 20:24:36 -06:00

33 lines
902 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
run: |
# Download Kaniko executor binary
curl -LO https://github.com/GoogleContainerTools/kaniko/releases/download/v1.23.2/executor-linux-arm64
chmod +x executor-linux-arm64
# Run Kaniko directly
./executor-linux-arm64 \
--context . \
--dockerfile Dockerfile \
--no-push