Created
December 21, 2023 20:27
-
-
Save ArloL/577cce600afd6278d98421307c539dce to your computer and use it in GitHub Desktop.
kaniko build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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