docker: make version a parameter
This commit is contained in:
parent
bb6f0f0bf9
commit
6cc83576e5
|
@ -1,3 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
docker build -t git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.2 .
|
if [ -z "$1" ]; then
|
||||||
|
echo "usage: $0 <tag-version>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker build -t git.tkolb.de/amateurfunk/hamnet70/asciidoctor:$1 .
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "usage: $0 <tag-version>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
docker login
|
docker login
|
||||||
docker push git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.2
|
docker push git.tkolb.de/amateurfunk/hamnet70/asciidoctor:$1
|
||||||
docker logout
|
docker logout
|
||||||
|
|
Loading…
Reference in a new issue