From ce9e3f960d6ef63a1c5f8cd3ef9f348b4b0cac2f Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Thu, 7 May 2020 16:38:36 -0400 Subject: [PATCH] Removes git commit message for now. --- Dockerfile | 2 -- deploy.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 993f689..4a5c8d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,3 @@ FROM postgres -ARG GIT_COMMIT="" -CMD echo 'echo "git commit = $GIT_COMMIT"' >> ./initdb.sh COPY ./initdb.sh /docker-entrypoint-initdb.d/initdb.sh EXPOSE 5432 diff --git a/deploy.sh b/deploy.sh index adfd555..eb95f96 100644 --- a/deploy.sh +++ b/deploy.sh @@ -7,7 +7,7 @@ REPO="sartography/cr-connect-$APP" TAG=$(if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo "$TRAVIS_BRANCH" ; fi) 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:travis-$TRAVIS_BUILD_NUMBER" || exit 1 docker push "$REPO" || exit 1