mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 12:42:16 +01:00
fixes publishing Docker images in CI
This commit is contained in:
@@ -20,4 +20,4 @@ jobs:
|
|||||||
script: make lint
|
script: make lint
|
||||||
- stage: publish
|
- stage: publish
|
||||||
if: tag IS present
|
if: tag IS present
|
||||||
script: make image VERSION=$TRAVIS_TAG && ./scripts/publish.sh $TRAVIS_TAG $DOCKER_USER $DOCKER_PASS
|
script: ./scripts/publish.sh $TRAVIS_TAG $DOCKER_USER $DOCKER_PASS
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
GOLANG_VERSION=1.11.2
|
||||||
VERSION="$1"
|
VERSION="$1"
|
||||||
DOCKER_USER="$2"
|
DOCKER_USER="$2"
|
||||||
DOCKER_PASSWORD="$3"
|
DOCKER_PASSWORD="$3"
|
||||||
@@ -16,6 +17,15 @@ if [ $VERSION_LENGTH -ne 3 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker push thecodingmachine/gotenberg:${SEMVER[0]}
|
docker build -t thecodingmachine/gotenberg:base -f build/base/Dockerfile .
|
||||||
docker push thecodingmachine/gotenberg:${SEMVER[0]}.${SEMVER[1]}
|
docker build \
|
||||||
docker push thecodingmachine/gotenberg:${SEMVER[0]}.${SEMVER[1]}.${SEMVER[2]}
|
--build-arg GOLANG_VERSION=${GOLANG_VERSION} \
|
||||||
|
--build-arg VERSION=${VERSION} \
|
||||||
|
-t thecodingmachine/gotenberg:${SEMVER[0]} \
|
||||||
|
-t thecodingmachine/gotenberg:${SEMVER[0]}.${SEMVER[1]} \
|
||||||
|
-t thecodingmachine/gotenberg:${SEMVER[0]}.${SEMVER[1]}.${SEMVER[2]} \
|
||||||
|
-f build/package/Dockerfile .
|
||||||
|
|
||||||
|
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