mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-18 21:22:15 +01:00
fixing publish command (for good this time)
This commit is contained in:
2
Makefile
2
Makefile
@@ -58,4 +58,4 @@ gotenberg:
|
|||||||
# publish Gotenberg images according to version.
|
# publish Gotenberg images according to version.
|
||||||
publish:
|
publish:
|
||||||
make workspace
|
make workspace
|
||||||
./scripts/publish.sh $(GOLANG_VERSION) $(VERSION) $(DOCKER_USER) $(DOCKER_PASSWORD)
|
./scripts/publish.sh $(GOLANG_VERSION) $(TINI_VERSION) $(DOCKER_REPOSITORY) $(VERSION) $(DOCKER_USER) $(DOCKER_PASSWORD)
|
||||||
@@ -3,9 +3,11 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
GOLANG_VERSION="$1"
|
GOLANG_VERSION="$1"
|
||||||
VERSION="$2"
|
TINI_VERSION="$2"
|
||||||
DOCKER_USER="$3"
|
DOCKER_REPOSITORY="$3"
|
||||||
DOCKER_PASSWORD="$4"
|
VERSION="$4"
|
||||||
|
DOCKER_USER="$5"
|
||||||
|
DOCKER_PASSWORD="$6"
|
||||||
|
|
||||||
docker login -u "$DOCKER_USER" -p "$DOCKER_PASSWORD"
|
docker login -u "$DOCKER_USER" -p "$DOCKER_PASSWORD"
|
||||||
|
|
||||||
@@ -20,13 +22,14 @@ fi
|
|||||||
|
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg VERSION=${VERSION} \
|
--build-arg VERSION=${VERSION} \
|
||||||
-t thecodingmachine/gotenberg:latest \
|
--build-arg TINI_VERSION=${TINI_VERSION} \
|
||||||
-t thecodingmachine/gotenberg:${SEMVER[0]} \
|
-t ${DOCKER_REPOSITORY}/gotenberg:latest \
|
||||||
-t thecodingmachine/gotenberg:${SEMVER[0]}.${SEMVER[1]} \
|
-t ${DOCKER_REPOSITORY}/gotenberg:${SEMVER[0]} \
|
||||||
-t thecodingmachine/gotenberg:${SEMVER[0]}.${SEMVER[1]}.${SEMVER[2]} \
|
-t ${DOCKER_REPOSITORY}/gotenberg:${SEMVER[0]}.${SEMVER[1]} \
|
||||||
|
-t ${DOCKER_REPOSITORY}/gotenberg:${SEMVER[0]}.${SEMVER[1]}.${SEMVER[2]} \
|
||||||
-f build/package/Dockerfile .
|
-f build/package/Dockerfile .
|
||||||
|
|
||||||
docker push "thecodingmachine/gotenberg:latest"
|
docker push "${DOCKER_REPOSITORY}/gotenberg:latest"
|
||||||
docker push "thecodingmachine/gotenberg:${SEMVER[0]}"
|
docker push "${DOCKER_REPOSITORY}/gotenberg:${SEMVER[0]}"
|
||||||
docker push "thecodingmachine/gotenberg:${SEMVER[0]}.${SEMVER[1]}"
|
docker push "${DOCKER_REPOSITORY}/gotenberg:${SEMVER[0]}.${SEMVER[1]}"
|
||||||
docker push "thecodingmachine/gotenberg:${SEMVER[0]}.${SEMVER[1]}.${SEMVER[2]}"
|
docker push "${DOCKER_REPOSITORY}/gotenberg:${SEMVER[0]}.${SEMVER[1]}.${SEMVER[2]}"
|
||||||
Reference in New Issue
Block a user