Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
VaultVulp committed May 7, 2024
1 parent 0ef169e commit fa7b729
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,21 @@ if [ $(echo ${DOCKER_IMAGE_PLATFORM}) != "" ]; then
set -- $(echo ${@}) --platform $(echo ${DOCKER_IMAGE_PLATFORM})
fi

echo "Check args"
if [ $(echo ${CUSTOM_DOCKER_BUILD_ARGS}) != "" ]; then
echo "Set args"
set -- ${@} ${CUSTOM_DOCKER_BUILD_ARGS}
fi

echo "Set context"
set -- ${@} ${BUILD_CONTEXT}

echo "Check DOCKER_IMAGE_TAGS"
for tag in $(echo ${DOCKER_IMAGE_TAGS})
do
DOCKER_IMAGE_NAME_WITH_TAG=$(echo ${DOCKER_IMAGE_NAME}:${tag} | tr '[:upper:]' '[:lower:]')
set -- -t $(echo ${DOCKER_IMAGE_NAME_WITH_TAG}) $(echo ${@})
done

echo "Start build"
docker buildx build --push ${@}

0 comments on commit fa7b729

Please sign in to comment.