Add shell script to publish container
This commit is contained in:
+8
-2
@@ -1,4 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
docker build . -f docker/Dockerfile -t git.ohea.xyz/cursorius/server:latest
|
if [[ -z "${1}" ]]; then
|
||||||
docker push git.ohea.xyz/cursorius/server:latest
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user