2021-10-11 03:28:20 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
docker build -t ungleich-certbot .
|
|
|
|
|
|
|
|
while [ $# -ge 1 ]; do
|
|
|
|
tag=$1; shift
|
2021-10-11 03:36:14 +00:00
|
|
|
git tag -a -m "Version $tag" $tag
|
|
|
|
git push --tags
|
2021-10-11 03:28:20 +00:00
|
|
|
docker tag ungleich-certbot:latest ungleich/ungleich-certbot:${tag}
|
2021-12-11 18:16:14 +00:00
|
|
|
docker tag ungleich-certbot:latest harbor.ungleich.svc.p10.k8s.ooo/ungleich-public/ungleich-certbot:${tag}
|
2021-10-11 03:28:20 +00:00
|
|
|
docker push ungleich/ungleich-certbot:${tag}
|
2021-12-11 18:16:14 +00:00
|
|
|
docker push harbor.ungleich.svc.p10.k8s.ooo/ungleich-public/ungleich-certbot:${tag}
|
2021-10-11 03:28:20 +00:00
|
|
|
done
|