❇️ Squash the images
This commit is contained in:
parent
71200070e7
commit
dca64f55f5
2
build.sh
2
build.sh
|
@ -43,7 +43,7 @@ else
|
|||
fi
|
||||
|
||||
echo "🐳 Building the Docker image '${DOCKER_REPO}/netbox:${TAG}' from the branch '${BRANCH}'."
|
||||
docker build -t "${DOCKER_REPO}/netbox:${TAG}" --build-arg "BRANCH=${BRANCH}" --build-arg "URL=${URL}" --pull ${CACHE} .
|
||||
docker build --squash -t "${DOCKER_REPO}/netbox:${TAG}" --build-arg "BRANCH=${BRANCH}" --build-arg "URL=${URL}" --pull ${CACHE} .
|
||||
echo "✅ Finished building the Docker images '${DOCKER_REPO}/netbox:${TAG}'"
|
||||
|
||||
if [ "${2}" == "--push" ] ; then
|
||||
|
|
Loading…
Reference in New Issue