docker_practice/cases/ci/demo/travis/.travis.yml

17 lines
265 B
YAML
Raw Normal View History

language: bash
dist: xenial
services:
- docker
before_script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
script:
- echo "test code"
after_success:
- docker build -t username/alpine .
- docker push username/alpine