docker: make version a parameter

This commit is contained in:
Thomas Kolb 2024-08-26 00:56:08 +02:00
parent bb6f0f0bf9
commit 6cc83576e5
2 changed files with 12 additions and 2 deletions

View file

@ -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 .

View file

@ -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