Publish docker image

This commit is contained in:
sebthom
2022-02-01 07:32:45 +01:00
parent dfc6481541
commit 66f57a0822
3 changed files with 40 additions and 13 deletions

View File

@@ -63,13 +63,3 @@ docker build "$project_root" \
--build-arg GIT_REPO_URL="$(git config --get remote.origin.url)" \
-t $image_name \
"$@"
#################################################
# push image with tags to remote docker image registry
#################################################
if [[ "${DOCKER_PUSH:-0}" == "1" ]]; then
docker image tag $image_name docker.io/$image_name
docker push docker.io/$image_name
fi