mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-06 07:30:40 +00:00
Fix travis builds on branches
For some reason, `docker login` doesn't work on pull requests. So we run "docker login" only during deploy, and only on master and release branches.
This commit is contained in:
parent
f76a4feb53
commit
edec42779f
11
.travis.yml
11
.travis.yml
@ -1,14 +1,15 @@
|
||||
language: python
|
||||
language: minimal
|
||||
services:
|
||||
- docker
|
||||
script:
|
||||
- make build
|
||||
- make build-configurator
|
||||
- make configure SILENT=1
|
||||
- make build
|
||||
- make migrate
|
||||
#- make assets # too time-consuming
|
||||
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
|
||||
deploy:
|
||||
provider: script
|
||||
script: make push
|
||||
script: docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" && make push
|
||||
on:
|
||||
branch: master
|
||||
all_branches: true
|
||||
condition: $TRAVIS_BRANCH =~ ^master|release\/.*$
|
||||
|
Loading…
Reference in New Issue
Block a user