mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-09 14:50:59 +00:00
edec42779f
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.
16 lines
363 B
YAML
16 lines
363 B
YAML
language: minimal
|
|
services:
|
|
- docker
|
|
script:
|
|
- make build-configurator
|
|
- make configure SILENT=1
|
|
- make build
|
|
- make migrate
|
|
#- make assets # too time-consuming
|
|
deploy:
|
|
provider: script
|
|
script: docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" && make push
|
|
on:
|
|
all_branches: true
|
|
condition: $TRAVIS_BRANCH =~ ^master|release\/.*$
|