-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
- Loading branch information
1 parent
106834d
commit fb5324c
Showing
5 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
bin | ||
.tmp | ||
release-out |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
TAG=$1 | ||
OUT=$2 | ||
|
||
set -eu -o pipefail | ||
|
||
: ${PLATFORMS=linux/amd64} | ||
: ${CONTINUOUS_INTEGRATION=} | ||
|
||
progressFlag="" | ||
if [ "$CONTINUOUS_INTEGRATION" == "true" ]; then progressFlag="--progress=plain"; fi | ||
|
||
|
||
usage() { | ||
echo "usage: ./hack/release-tar <tag> <out>" | ||
exit 1 | ||
} | ||
|
||
if [ -z "$TAG" ] || [ -z "$OUT" ]; then | ||
usage | ||
fi | ||
|
||
|
||
set -x | ||
|
||
buildctl build $progressFlag --frontend=dockerfile.v0 \ | ||
--local context=. --local dockerfile=. \ | ||
--frontend-opt filename=./hack/dockerfiles/test.buildkit.Dockerfile \ | ||
--frontend-opt target=release \ | ||
--frontend-opt platform=$PLATFORMS \ | ||
--exporter local \ | ||
--exporter-opt output=$OUT |