Last active
October 30, 2017 14:30
-
-
Save JayH5/5eb698eabe5658f7b49bf3366708bc30 to your computer and use it in GitHub Desktop.
Example Travis deploy section from end of part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
before_deploy: | |
- docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS" | |
- docker tag "$IMAGE_NAME" "${IMAGE_NAME}:latest" | |
- docker tag "$IMAGE_NAME" "${IMAGE_NAME}:${version}" | |
deploy: | |
provider: script | |
script: docker push "${IMAGE_NAME}:latest" && docker push "${IMAGE_NAME}:${version}" | |
on: | |
branch: master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment