Skip to content

Instantly share code, notes, and snippets.

@ArloL
Created December 21, 2023 20:27
Show Gist options
  • Save ArloL/577cce600afd6278d98421307c539dce to your computer and use it in GitHub Desktop.
Save ArloL/577cce600afd6278d98421307c539dce to your computer and use it in GitHub Desktop.
kaniko build
#!/bin/sh
set -o errexit
set -o nounset
set -o xtrace
cd "$(dirname "$0")/.." || exit 1
. ./scripts/setup-shell.sh
docker run \
--volume "${PWD}:/workspace" \
gcr.io/kaniko-project/executor:latest \
--dockerfile "/workspace/Dockerfile" \
--destination "myimagename" \
--context "dir:///workspace/" \
--no-push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment