Add build utils
This commit is contained in:
parent
02f9a59ba5
commit
bc796c356f
14
utils/docker_build.sh
Executable file
14
utils/docker_build.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# should be executed from directory with required Dockerfile
|
||||
name_w_tags=$1
|
||||
|
||||
if [[ -z "$name_w_tags" ]]; then
|
||||
name_w_tags='solarproject/solar-celery:latest'
|
||||
fi
|
||||
|
||||
echo "Building image with name $name_w_tags"
|
||||
docker build -t "$name_w_tags" .
|
||||
docker push "$name_w_tags"
|
||||
|
Loading…
x
Reference in New Issue
Block a user