-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker buildx setup to release.jenkinsfile (#42)
- Loading branch information
1 parent
f2df70a
commit 80ea78a
Showing
2 changed files
with
14 additions
and
0 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
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,12 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
if [[ ! -f "$HOME/.docker/cli-plugins/docker-buildx" ]]; then | ||
echo "installing docker buildx..." | ||
wget -q -O docker-buildx https://github.com/docker/buildx/releases/download/v0.9.1/buildx-v0.9.1.linux-amd64 | ||
chmod a+x docker-buildx | ||
[[ ! -d "$HOME/.docker/cli-plugins" ]] && mkdir -p ~/.docker/cli-plugins | ||
mv docker-buildx ~/.docker/cli-plugins | ||
echo "successfully installed docker buildx: $(docker buildx version)" | ||
else | ||
echo "buildx already installed: $(docker buildx version)" | ||
fi |