mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-07 16:04:02 +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:
|
services:
|
||||||
- docker
|
- docker
|
||||||
script:
|
script:
|
||||||
- make build
|
- make build-configurator
|
||||||
- make configure SILENT=1
|
- make configure SILENT=1
|
||||||
|
- make build
|
||||||
- make migrate
|
- make migrate
|
||||||
#- make assets # too time-consuming
|
#- make assets # too time-consuming
|
||||||
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: script
|
provider: script
|
||||||
script: make push
|
script: docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" && make push
|
||||||
on:
|
on:
|
||||||
branch: master
|
all_branches: true
|
||||||
|
condition: $TRAVIS_BRANCH =~ ^master|release\/.*$
|
||||||
|
Loading…
Reference in New Issue
Block a user