mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 08:32:16 +01:00
v3.0.0 (#18)
This commit is contained in:
21
scripts/publish.sh
Executable file
21
scripts/publish.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
VERSION="$1"
|
||||
DOCKER_USER="$2"
|
||||
DOCKER_PASSWORD="$3"
|
||||
|
||||
docker login -u "$DOCKER_USER" -p "$DOCKER_PASSWORD"
|
||||
|
||||
SEMVER=( ${VERSION//./ } )
|
||||
VERSION_LENGTH=${#SEMVER[@]}
|
||||
|
||||
if [ $VERSION_LENGTH -ne 3 ]; then
|
||||
echo "$VERSION is not semver."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker push thecodingmachine/gotenberg:${SEMVER[0]}
|
||||
docker push thecodingmachine/gotenberg:${SEMVER[0]}.${SEMVER[1]}
|
||||
docker push thecodingmachine/gotenberg:${SEMVER[0]}.${SEMVER[1]}.${SEMVER[2]}
|
||||
Reference in New Issue
Block a user