diff options
author | Christian Segundo | 2024-04-07 10:45:05 +0200 |
---|---|---|
committer | Christian Segundo | 2024-04-07 18:19:48 +0200 |
commit | 8206fecdb86f05d353ef25c9596cebca5c1d28fb (patch) | |
tree | 169f50213c94e8a558bf1c235871c764045f4338 /.scripts.d/20-build.sh | |
parent | 3891426ce8deba513c5bcf1594987bdcfc837304 (diff) | |
download | jenkins-agent-docker-cli-8206fecdb86f05d353ef25c9596cebca5c1d28fb.tar.gz |
install buildx
Diffstat (limited to '.scripts.d/20-build.sh')
-rw-r--r-- | .scripts.d/20-build.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.scripts.d/20-build.sh b/.scripts.d/20-build.sh new file mode 100644 index 0000000..a8b28b5 --- /dev/null +++ b/.scripts.d/20-build.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# vim: ai:ts=8:sw=8:noet +set -EeufCo pipefail +export SHELLOPTS # propagate set to children by default +IFS=$'\t\n' + +# check required commands are in place +command -v docker >/dev/null 2>&1 || { + echo 'please install docker-client' + exit 1 +} + +docker buildx build \ + --no-cache \ + --pull \ + --load \ + --tag "chn2guevara/jenkins-agent-docker-cli:${BUILD_ID}" \ + . + + |