Skip to content

Commit

Permalink
use private build of kaniko
Browse files Browse the repository at this point in the history
  • Loading branch information
yehiyam committed Jul 1, 2019
1 parent 3486b75 commit 1951a5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
FROM gcr.io/kaniko-project/executor:debug-v0.10.0
# FROM gcr.io/kaniko-project/executor:debug-v0.10.0
FROM yehiyam/executor:debug
COPY run.sh /scripts/
ENTRYPOINT [ "sh","-c", "/scripts/run.sh" ]
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION=v1.1.2
VERSION=v1.1.3
docker build -t hkube/kaniko:${VERSION} .
docker push hkube/kaniko:${VERSION}
5 changes: 3 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ fi
if [ -f /commands/run ]; then
echo running command /commands/run
cat /commands/run
set -o pipefail
sh -c /commands/run 2>&1 | tee /commands/output
echo done
rc=$?
echo done with code $rc
if [ $rc != 0 ]
then
echo "error: $rc" | tee /commands/output
echo "error: $rc" | tee -a /commands/output
touch /commands/code_error
else
touch /commands/code_ok
Expand Down

0 comments on commit 1951a5e

Please sign in to comment.