-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
17 lines (15 loc) · 883 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
language: minimal
services:
- docker
script:
- docker build --target silverstripe_php -t $TRAVIS_REPO_SLUG:4-php-latest -t $TRAVIS_REPO_SLUG:4-php-7.3 -t $TRAVIS_REPO_SLUG:4.4-php-latest -t $TRAVIS_REPO_SLUG:4.4-php-7.3 .
- docker build --target silverstripe_nginx -t $TRAVIS_REPO_SLUG:4-nginx-latest -t $TRAVIS_REPO_SLUG:4-nginx-1.17 -t $TRAVIS_REPO_SLUG:4.4-nginx-latest -t $TRAVIS_REPO_SLUG:4.4-nginx-1.17 .
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push $TRAVIS_REPO_SLUG:4-php-latest
- docker push $TRAVIS_REPO_SLUG:4-php-7.3
- docker push $TRAVIS_REPO_SLUG:4.4-php-latest
- docker push $TRAVIS_REPO_SLUG:4.4-php-7.3
- docker push $TRAVIS_REPO_SLUG:4-nginx-latest
- docker push $TRAVIS_REPO_SLUG:4-nginx-1.17
- docker push $TRAVIS_REPO_SLUG:4.4-nginx-latest
- docker push $TRAVIS_REPO_SLUG:4.4-nginx-1.17