Make a script at .travis/docker_push:
Developers should feel free to update the functionality of this embed their custom workflow, tagging, branch structure, etc., this is just a simple baseline stolen from the early stages of asym-crypto-yaml.
Code Block |
---|
#!/bin/bash echo "$DOCKER_PASSWORD" | docker login -u $DOCKER_USERNAME --password-stdin if [ ! -z "${TRAVIS_TAG}" ]; then docker tag edxops/MY_REPO:latest edxops/MY_REPO:${TRAVIS_TAG} docker push edxops/MY_REPO:${TRAVIS_TAG} fi docker push edxops/MY_REPO:latest |
...