docker: make version a parameter
This commit is contained in:
parent
a0120abc39
commit
50ccda3738
|
@ -1,3 +1,8 @@
|
|||
#!/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
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "usage: $0 <tag-version>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker login
|
||||
docker push git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.2
|
||||
docker push git.tkolb.de/amateurfunk/hamnet70/asciidoctor:$1
|
||||
docker logout
|
||||
|
|
Loading…
Reference in a new issue