Skip to content

Commit

Permalink
add auto push mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Apr 11, 2024
1 parent 489aa0d commit a0e93fe
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion builder/base/cuda-runfile/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,13 @@ docker buildx build --platform "${PLATFORM}" -t "cupy/cupy-release-tools:cuda-ru
--build-arg BASE_IMAGE="${BASE_IMAGE}" \
--build-arg CUDA_INSTALLER_URL="${CUDA_INSTALLER_URL}"

echo "Done. Run docker push cupy/cupy-release-tools:cuda-runfile-${CUDA_VERSION}-${IMAGE_SUFFIX} to push the image."
PUSH_COMMAND="docker push cupy/cupy-release-tools:cuda-runfile-${CUDA_VERSION}-${IMAGE_SUFFIX}"

echo "Done."

if [[ ${AUTO_PUSH:-0} == 1 ]]; then
echo "Pushing: ${PUSH_COMMAND}"
eval "${PUSH_COMMAND}"
else
echo "Run ${PUSH_COMMAND} to push the image."
fi

0 comments on commit a0e93fe

Please sign in to comment.