Skip to content

Commit

Permalink
Automatically add / in REGISTRY setting if it does not already end wi…
Browse files Browse the repository at this point in the history
…th /
  • Loading branch information
iankouls committed Apr 18, 2019
1 parent 4d07f1d commit 0e1c6fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions linux/.env
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ export no_proxy=localhost
# Docker image settings
## REGISTRY: [optional] - Docker registry path including trailing "/". Example: registry.company.com/demo/
export REGISTRY=
if [ -n "${REGISTRY}" ]; then
if [ "${REGISTRY: -1}" != "/" ]; then
export REGISTRY="${REGISTRY}/"
fi
fi
## IMAGE: <required> - Docker image name for this project. Example: myapp
export IMAGE=myapp
## VERSION: [optional] - Version tag for this Docker image. Example: v20180302
Expand Down

0 comments on commit 0e1c6fe

Please sign in to comment.