Download and run Kaniko binary directly
This commit is contained in:
@@ -20,9 +20,13 @@ jobs:
|
|||||||
echo "RUN echo 'Kaniko build successful'" >> Dockerfile
|
echo "RUN echo 'Kaniko build successful'" >> Dockerfile
|
||||||
|
|
||||||
- name: Build with Kaniko
|
- name: Build with Kaniko
|
||||||
# Kaniko runs as a standalone container for this step
|
run: |
|
||||||
uses: docker://gcr.io/kaniko-project/executor:debug
|
# Download Kaniko executor binary
|
||||||
with:
|
curl -LO https://github.com/GoogleContainerTools/kaniko/releases/download/v1.23.2/executor-linux-arm64
|
||||||
# --no-push just builds it to verify it works.
|
chmod +x executor-linux-arm64
|
||||||
# To push, you would add --destination registry/image:tag
|
|
||||||
args: --context . --dockerfile Dockerfile --no-push
|
# Run Kaniko directly
|
||||||
|
./executor-linux-arm64 \
|
||||||
|
--context . \
|
||||||
|
--dockerfile Dockerfile \
|
||||||
|
--no-push
|
||||||
|
|||||||
Reference in New Issue
Block a user