mirror of
https://github.com/aevea/action-kaniko.git
synced 2025-04-10 05:08:48 +02:00
Compare commits
8 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
be5ce625a5 | ||
![]() |
58af85fb13 | ||
![]() |
9223ef89b8 | ||
![]() |
12a3a8cc81 | ||
![]() |
977090a03e | ||
![]() |
fd47216104 | ||
![]() |
8de7c88b27 | ||
![]() |
ef9c4ca42e |
5 changed files with 11 additions and 4 deletions
2
.github/workflows/pr.yml
vendored
2
.github/workflows/pr.yml
vendored
|
@ -10,4 +10,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Run commitsar
|
- name: Run commitsar
|
||||||
uses: docker://aevea/commitsar@sha256:8d2db4e430dd06e3fcde173add43dada80b37150ba1191a69cda1c0bcdba9cb1
|
uses: docker://aevea/commitsar@sha256:e4aed72de9a00b990a53c678ad51fbe9bd04e127a617d10beab0ef0204b1dfa0
|
||||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -15,7 +15,7 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Release Notary Action
|
- name: Release Notary Action
|
||||||
uses: docker://aevea/release-notary@sha256:b77e86ce9ce4b0c8774cdb3b807b756d1d6139d73aca74388560250de259be4e
|
uses: docker://aevea/release-notary@sha256:690915bf87458fd8eb1e1ff0be34b33377f920eda3f38b96c62ecbf897c831f4
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -2,7 +2,7 @@ FROM alpine as certs
|
||||||
|
|
||||||
RUN apk --update add ca-certificates
|
RUN apk --update add ca-certificates
|
||||||
|
|
||||||
FROM gcr.io/kaniko-project/executor:v1.20.0-debug
|
FROM gcr.io/kaniko-project/executor:v1.23.2-debug
|
||||||
|
|
||||||
SHELL ["/busybox/sh", "-c"]
|
SHELL ["/busybox/sh", "-c"]
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
# Kaniko image builder
|
# Kaniko image builder
|
||||||
|
|
||||||
|
> [!WARNING]
|
||||||
|
> The kaniko project no longer seems to [have maintainers](https://github.com/GoogleContainerTools/kaniko/issues/3348). Keep this in mind before deciding to use kaniko as your image builder.
|
||||||
|
|
||||||
This Action uses the [kaniko](https://github.com/GoogleContainerTools/kaniko) executor instead of the docker daemon. Kaniko builds the image
|
This Action uses the [kaniko](https://github.com/GoogleContainerTools/kaniko) executor instead of the docker daemon. Kaniko builds the image
|
||||||
by extracting the filesystem of the base image, making the changes in the user space, snapshotting any change and appending it to the base
|
by extracting the filesystem of the base image, making the changes in the user space, snapshotting any change and appending it to the base
|
||||||
image filesystem.
|
image filesystem.
|
||||||
|
|
|
@ -94,13 +94,17 @@ EOF
|
||||||
# https://github.com/GoogleContainerTools/kaniko/issues/1803
|
# https://github.com/GoogleContainerTools/kaniko/issues/1803
|
||||||
# https://github.com/GoogleContainerTools/kaniko/issues/1349
|
# https://github.com/GoogleContainerTools/kaniko/issues/1349
|
||||||
export IFS=''
|
export IFS=''
|
||||||
|
# Removes a trailing new line
|
||||||
|
ARGS=$(echo "${ARGS}" | sed 's/\n*$//')
|
||||||
kaniko_cmd="/kaniko/executor ${ARGS} --reproducible --force"
|
kaniko_cmd="/kaniko/executor ${ARGS} --reproducible --force"
|
||||||
echo "Running kaniko command ${kaniko_cmd}"
|
echo "Running kaniko command ${kaniko_cmd}"
|
||||||
eval "${kaniko_cmd}"
|
eval "${kaniko_cmd}"
|
||||||
|
|
||||||
echo "image=$IMAGE" >> "$GITHUB_OUTPUT"
|
echo "image=$IMAGE" >> "$GITHUB_OUTPUT"
|
||||||
echo "digest=$(cat /kaniko/digest)" >> "$GITHUB_OUTPUT"
|
echo "digest=$(cat /kaniko/digest)" >> "$GITHUB_OUTPUT"
|
||||||
echo "image-tag-digest=$(cat /kaniko/image-tag-digest)" >> "$GITHUB_OUTPUT"
|
echo "image-tag-digest<<EOF" >>"$GITHUB_OUTPUT"
|
||||||
|
echo "$(cat /kaniko/image-tag-digest)" >>"$GITHUB_OUTPUT"
|
||||||
|
echo 'EOF' >>"$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
|
||||||
if [ -n "$INPUT_SKIP_UNCHANGED_DIGEST" ]; then
|
if [ -n "$INPUT_SKIP_UNCHANGED_DIGEST" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue