Skip to content

Commit

Permalink
Travis / GHOST_VERSION_FROM_DOCKERFILE /A
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalandy committed May 1, 2018
1 parent 6385365 commit 1af078e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ install:
- git clone https://github.com/docker-library/official-images.git ~/official-images

before_script:
- GHOST_VERSION_FROM_DOCKERFILE="$(cat Dockerfile | grep GHOST_VERSION= | head -n 1 | grep -o '".*"' | sed 's/"//g')"
- CONTAINER_NAME="ghostuat"
- DOCKER_USERNAME="devmtl"
- DOCKER_REPO_NAME="ghostfire"
Expand Down Expand Up @@ -72,6 +73,7 @@ after_script:
- docker exec -it "$CONTAINER_NAME" curl -Is --head "http://localhost:2368" | grep -F -o "HTTP/1.1 200 OK" || echo "Error --> http://localhost:2368"
- docker rm -f "$CONTAINER_NAME";
- echo && echo "IMAGE_EDGE=$IMAGE_EDGE" && echo "IMAGE_SHA_SHORT=$IMAGE_SHA_SHORT" && echo "IMAGE_VERSION=$IMAGE_VERSION" && echo "IMAGE_SHA_LONG=$IMAGE_SHA_LONG" && echo "IMAGE_DATE=$IMAGE_DATE" && echo "#IMAGE_EDGE=$IMAGE_EDGE" && echo "#IMAGE_SHA_SHORT=$IMAGE_SHA_SHORT" && echo "#IMAGE_VERSION=$IMAGE_VERSION" && echo "#IMAGE_SHA_LONG=$IMAGE_SHA_LONG" && echo "#IMAGE_DATE=$IMAGE_DATE"
- echo "$GHOST_VERSION_FROM_DOCKERFILE"

after_success:
#docker build -t "$IMAGE_SHA_LONG" (already built)
Expand Down

0 comments on commit 1af078e

Please sign in to comment.