Download and run Kaniko binary directly
This commit is contained in:
@@ -20,9 +20,13 @@ jobs:
|
||||
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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user