From 6cc83576e53fa3314435b1d2844f9e9b98fbbdb4 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Mon, 26 Aug 2024 00:56:08 +0200 Subject: [PATCH] docker: make version a parameter --- doc/docker/build.sh | 7 ++++++- doc/docker/upload.sh | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/docker/build.sh b/doc/docker/build.sh index 5f412ee..02cabee 100755 --- a/doc/docker/build.sh +++ b/doc/docker/build.sh @@ -1,3 +1,8 @@ #!/bin/sh -docker build -t git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.2 . +if [ -z "$1" ]; then + echo "usage: $0 " + exit 1 +fi + +docker build -t git.tkolb.de/amateurfunk/hamnet70/asciidoctor:$1 . diff --git a/doc/docker/upload.sh b/doc/docker/upload.sh index 5fbb017..1733dce 100755 --- a/doc/docker/upload.sh +++ b/doc/docker/upload.sh @@ -1,5 +1,10 @@ #!/bin/sh +if [ -z "$1" ]; then + echo "usage: $0 " + 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