January 2019
Intermediate to advanced
484 pages
11h 48m
English
This section defines environment variables that are visible throughout a build:
DOCKER_REPO=devopswithkubernetes/okeydokeyBUILD_IMAGE_PATH=${DOCKER_REPO}:build-${TRAVIS_COMMIT}RELEASE_IMAGE_PATH=${DOCKER_REPO}:${TRAVIS_TAG}
Here, we set some variables that might be changed, such as the Docker registry path where the built image is heading. There's also metadata about a build passed from Travis CI in the form of environment variables, which is documented here: https://docs.travis-ci.com/user/environment-variables/#default-environment-variables. For example, TRAVIS_COMMIT represents the hash of the current commit, and we use it as an identifier to distinguish our images across builds.
The other source of environment variables is configured ...
Read now
Unlock full access