Add shell script to publish container
This commit is contained in:
parent
dcaeaeb6d6
commit
dc09c0f4f5
|
@ -1,4 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker build . -f docker/Dockerfile -t git.ohea.xyz/cursorius/server:latest
|
||||
docker push git.ohea.xyz/cursorius/server:latest
|
||||
if [[ -z "${1}" ]]; then
|
||||
echo "You must provide a docker tag to push to."
|
||||
else
|
||||
echo "Building container git.ohea.xyz/cursorius/server:$1"
|
||||
docker build . -f docker/cursorius/Dockerfile -t "git.ohea.xyz/cursorius/server:$1"
|
||||
echo "Pushing container git.ohea.xyz/cursorius/server:$1"
|
||||
docker push "git.ohea.xyz/cursorius/server:$1"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue