-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(from 74a71a9)
- Loading branch information
Showing
10 changed files
with
95 additions
and
19 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
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,4 +1,7 @@ | ||
# VAST Data CSI Driver | ||
|
||
The source-code in this repository is for informational purposes only. It is not meant to be compiled or used directly. | ||
The source-code in this repository is for informational purposes only. It is not meant to be used directly. | ||
If you wish to use our driver with your VAST storage system, please refer to our [official documentation](https://support.vastdata.com/s/topic/0TOV40000000TwTOAU/vast-csi-driver-23-administrators-guide). | ||
|
||
Avoid opening issues in this within this project. | ||
If you need support, please use VAST's Customer Support channels - https://support.vastdata.com |
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,48 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
log() { echo -e "\033[93m$(date $DATE_PARAM) >> $@\033[0m" 1>&2; } | ||
|
||
# Check if the base image name is specified | ||
if [ -z "$1" ]; then | ||
log "Base image name is not specified." && exit 1 | ||
fi | ||
|
||
# Check if the tag is specified | ||
if [ -z "$2" ]; then | ||
log "Tag is not specified." && exit 1 | ||
fi | ||
|
||
BASE_IMAGE_NAME=$1 | ||
IMAGE_TAG=$2 | ||
VERSION=$(cat version.txt) | ||
if [ -z "$CI_COMMIT_SHA" ]; then | ||
CI_COMMIT_SHA=$(git rev-parse HEAD) | ||
fi | ||
|
||
# Define target platforms | ||
PLATFORMS="linux/amd64,linux/arm64" | ||
|
||
# Create or use an existing Buildx builder instance | ||
if ! docker buildx inspect builder > /dev/null 2>&1; then | ||
log "Creating a new Buildx builder instance." | ||
docker buildx create --name builder --use | ||
else | ||
log "Using existing Buildx builder instance." | ||
fi | ||
|
||
# Build and push the Docker image | ||
docker buildx build \ | ||
--platform $PLATFORMS \ | ||
-t $IMAGE_TAG \ | ||
--build-arg=GIT_COMMIT=$CI_COMMIT_SHA \ | ||
--build-arg=VERSION=$VERSION \ | ||
--build-arg=CI_PIPELINE_ID=${CI_PIPELINE_ID:-local} \ | ||
--build-arg=BASE_IMAGE_NAME=$BASE_IMAGE_NAME \ | ||
-f packaging/Dockerfile \ | ||
--push \ | ||
. | ||
|
||
# Log build completion | ||
log "Build and push completed for image: $IMAGE_TAG for platforms: $PLATFORMS" |
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 |
---|---|---|
@@ -1 +1 @@ | ||
v2.4.1 | ||
v2.4.2 |