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