chore: improving scripts and add thecodingmachine to edge release

This commit is contained in:
Julien Neuhart
2023-10-29 11:43:47 +01:00
parent b9ad67d147
commit 017872c5ef
3 changed files with 12 additions and 26 deletions

View File

@@ -10,23 +10,7 @@ NOTO_COLOR_EMOJI_VERSION="$5"
PDFTK_VERSION="$6"
DOCKER_REPOSITORY="$7"
if [ $GOTENBERG_VERSION == "edge" ]; then
# docker buildx build \
# --build-arg GOLANG_VERSION="$GOLANG_VERSION" \
# --build-arg GOTENBERG_VERSION="$GOTENBERG_VERSION" \
# --build-arg GOTENBERG_USER_GID="$GOTENBERG_USER_GID" \
# --build-arg GOTENBERG_USER_UID="$GOTENBERG_USER_UID" \
# --build-arg NOTO_COLOR_EMOJI_VERSION="$NOTO_COLOR_EMOJI_VERSION" \
# --build-arg PDFTK_VERSION="$PDFTK_VERSION" \
# --platform linux/amd64 \
# --platform linux/arm64 \
# --platform linux/arm/v7 \
# --platform linux/386 \
# -t "$DOCKER_REPOSITORY/gotenberg:edge" \
# --push \
# -f build/Dockerfile .
# FIXME: --platform linux/arm/v7 (armhf) not working.
if [ "$GOTENBERG_VERSION" == "edge" ]; then
docker buildx build \
--build-arg GOLANG_VERSION="$GOLANG_VERSION" \
--build-arg GOTENBERG_VERSION="$GOTENBERG_VERSION" \
@@ -36,6 +20,7 @@ if [ $GOTENBERG_VERSION == "edge" ]; then
--build-arg PDFTK_VERSION="$PDFTK_VERSION" \
--platform linux/amd64 \
--platform linux/arm64 \
--platform linux/arm/v7 \
--platform linux/386 \
-t "$DOCKER_REPOSITORY/gotenberg:edge" \
--push \
@@ -55,12 +40,12 @@ if [ $GOTENBERG_VERSION == "edge" ]; then
fi
GOTENBERG_VERSION="${GOTENBERG_VERSION//v}"
SEMVER=( ${GOTENBERG_VERSION//./ } )
IFS='.' read -ra SEMVER <<< "$GOTENBERG_VERSION"
VERSION_LENGTH=${#SEMVER[@]}
if [ $VERSION_LENGTH -ne 3 ]; then
echo "$VERSION is not semver."
exit 1
if [ "$VERSION_LENGTH" -ne 3 ]; then
echo "$VERSION is not semver."
exit 1
fi
docker buildx build \