-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
so that we are able to remove shell from main image eventually
- Loading branch information
Showing
7 changed files
with
102 additions
and
42 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,18 +1,18 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
REPO_NAME=$2 | ||
|
||
if [ "$REPO_NAME" == "" ]; then | ||
REPO_NAME="kubernetes-sigs" | ||
fi | ||
BUILD_ARGS=( \ | ||
--frontend dockerfile.v0 \ | ||
--local context=. \ | ||
--local dockerfile=build/multi \ | ||
--opt filename=Dockerfile.multi \ | ||
--opt platform=linux/amd64,linux/arm64 \ | ||
--opt build-arg:CSI_VERSION=$(git describe --tags --always --dirty) | ||
) | ||
BUILD_ARGS+=("$@") | ||
|
||
cd ${GOPATH}/src/github.com/$REPO_NAME/alibaba-cloud-csi-driver/ | ||
GIT_SHA=`git rev-parse --short HEAD || echo "HEAD"` | ||
|
||
|
||
VERSION="v1.16.9" | ||
# GIT_HASH=`git rev-parse --short HEAD || echo "HEAD"` | ||
# GIT_BRANCH=`git symbolic-ref --short -q HEAD` | ||
# BUILD_TIME=`date +%FT%T%z` | ||
|
||
docker buildx build --platform linux/amd64,linux/arm64 . -f ./build/multi/Dockerfile.multi | ||
buildctl build "${BUILD_ARGS[@]}" \ | ||
--output type=image,name=alibaba-cloud-csi-driver:latest | ||
buildctl build "${BUILD_ARGS[@]}" \ | ||
--opt target=init \ | ||
--output type=image,name=alibaba-cloud-csi-driver:latest-init |
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
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