Skip to content

Commit

Permalink
Push only after success of build script
Browse files Browse the repository at this point in the history
  • Loading branch information
fjudith committed Nov 12, 2019
1 parent d9b32df commit 361fb18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
- sleep 10
- docker logs drawio
- docker exec drawio /bin/bash -c "curl -i http://localhost:8080"
after_success:
- echo "${DOCKER_PASS}" | docker login -u "${DOCKER_USER}" --password-stdin
- docker tag ${REPO}:${VERSION} ${REPO}:$TAG
- docker push ${REPO}:${TAG}
Expand All @@ -46,6 +47,8 @@ jobs:
- sleep 10
- docker logs drawio-${BASE_IMAGE}
- docker exec drawio-${BASE_IMAGE} /bin/bash -c "curl -i http://localhost:8080"
after_success:
- echo "${DOCKER_PASS}" | docker login -u "${DOCKER_USER}" --password-stdin
- docker tag ${REPO}:${VERSION}-${BASE_IMAGE} ${REPO}:${ALPINE_TAG}
- docker push ${REPO}:${ALPINE_TAG}
- docker push ${REPO}:${VERSION}-${BASE_IMAGE}
Expand Down

0 comments on commit 361fb18

Please sign in to comment.