Skip to content

Commit

Permalink
Add build args on the docker ci build scripts (opensearch-project#3393)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Apr 13, 2023
1 parent a0ac010 commit d626dfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/ci/build-image-multi-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ docker buildx ls | grep $BUILDER_NAME
docker ps | grep $BUILDER_NAME

# Build multi-arch images
docker buildx build --platform linux/amd64,linux/arm64 -t "opensearchstaging/${REPO_NAME}:${TAG_NAME}" -f "${DOCKERFILE}" --push .
docker buildx build --platform linux/amd64,linux/arm64 --build-arg VERSION=${TAG_NAME} --build-arg BUILD_DATE=`date -u +%Y-%m-%dT%H:%M:%SZ` --build-arg NOTES=${NOTES} -t "opensearchstaging/${REPO_NAME}:${TAG_NAME}" -f "${DOCKERFILE}" --push .

3 changes: 1 addition & 2 deletions docker/ci/build-image-single-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,4 @@ else
fi

# Docker build
docker build -f ${DOCKERFILE} ${DIR} -t opensearchstaging/${REPO_NAME}:${TAG_NAME} .

docker build --build-arg VERSION=$TAG_NAME --build-arg BUILD_DATE=`date -u +%Y-%m-%dT%H:%M:%SZ` --build-arg NOTES=$NOTES -f ${DOCKERFILE} -t opensearchstaging/${REPO_NAME}:${TAG_NAME} .

0 comments on commit d626dfe

Please sign in to comment.