Skip to content

Commit

Permalink
move kaniko build to a different file
Browse files Browse the repository at this point in the history
  • Loading branch information
some-natalie committed Dec 18, 2024
1 parent 4886afd commit 385eb87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test-kaniko.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ jobs:
export GIT_PASSWORD="${{ secrets.GITHUB_TOKEN }}"
# Build and push
/kaniko/executor --dockerfile="./images/ubi9.Dockerfile" \
/kaniko/executor --dockerfile="./images/kaniko-build-test.Dockerfile" \
--context="${{ github.repositoryUrl }}#${{ github.ref }}#${{ github.sha }}" \
--destination="ghcr.io/some-natalie/kubernoodles/kaniko-build:test" \
--push-retry 5 \
--build-arg opts="TARGETPLATFORM=linux/amd64" \
--image-name-with-digest-file /workspace/image-digest.txt
10 changes: 10 additions & 0 deletions images/kaniko-build-test.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM cgr.dev/chainguard/wolfi-base:latest

# install some software
RUN apk add --no-cache \
git \
jq \
wget

# echo "hello world" on launch
CMD ["echo", "hello world"]

0 comments on commit 385eb87

Please sign in to comment.