Commit 590e36ae authored by David Trattnig's avatar David Trattnig
Browse files

Fix docker commands, add info.

parent 552844ed
......@@ -10,8 +10,13 @@ docker="false"
# - dev
# - build
#
# - docker:dev
# - docker:prod
# - docker:build
# - docker:push
#
if [[ $* =~ ^(dev|build|push)$ ]]; then
if [[ $* =~ ^(dev|prod|build|push)$ ]]; then
mode=$1
fi
......@@ -68,12 +73,12 @@ if [[ $docker == "true" ]]; then
### Create Docker Image from local project ###
if [[ $mode == "build" ]]; then
docker build -t autoradio/engine-clock .
docker build -t autoradio/dashboard-clock .
fi
### Pushes the latest Docker Image to Docker Hub ###
if [[ $mode == "push" ]]; then
docker push autoradio/engine-clock
docker push autoradio/dashboard-clock
fi
fi
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment