Removes git commit message for now.
This commit is contained in:
parent
92089ba56d
commit
ce9e3f960d
|
@ -1,5 +1,3 @@
|
||||||
FROM postgres
|
FROM postgres
|
||||||
ARG GIT_COMMIT=""
|
|
||||||
CMD echo 'echo "git commit = $GIT_COMMIT"' >> ./initdb.sh
|
|
||||||
COPY ./initdb.sh /docker-entrypoint-initdb.d/initdb.sh
|
COPY ./initdb.sh /docker-entrypoint-initdb.d/initdb.sh
|
||||||
EXPOSE 5432
|
EXPOSE 5432
|
||||||
|
|
|
@ -7,7 +7,7 @@ REPO="sartography/cr-connect-$APP"
|
||||||
TAG=$(if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo "$TRAVIS_BRANCH" ; fi)
|
TAG=$(if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo "$TRAVIS_BRANCH" ; fi)
|
||||||
COMMIT=${TRAVIS_COMMIT::8}
|
COMMIT=${TRAVIS_COMMIT::8}
|
||||||
|
|
||||||
docker build -f Dockerfile -t "$REPO:$COMMIT" --build-arg GIT_COMMIT="$REPO:$COMMIT" . || exit 1
|
docker build -f Dockerfile -t "$REPO:$COMMIT" . || exit 1
|
||||||
docker tag "$REPO:$COMMIT" "$REPO:$TAG" || exit 1
|
docker tag "$REPO:$COMMIT" "$REPO:$TAG" || exit 1
|
||||||
docker tag "$REPO:$COMMIT" "$REPO:travis-$TRAVIS_BUILD_NUMBER" || exit 1
|
docker tag "$REPO:$COMMIT" "$REPO:travis-$TRAVIS_BUILD_NUMBER" || exit 1
|
||||||
docker push "$REPO" || exit 1
|
docker push "$REPO" || exit 1
|
||||||
|
|
Loading…
Reference in New Issue