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