split out stages for travis
This commit is contained in:
parent
a2f34ca349
commit
e5713887f8
1 changed files with 11 additions and 5 deletions
|
@ -1,9 +1,15 @@
|
|||
services:
|
||||
- docker
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: "Build and Push"
|
||||
name: "Build"
|
||||
script:
|
||||
- docker build -t boerderij/varken:$TRAVIS_BRANCH .
|
||||
- docker images
|
||||
- name: "Push"
|
||||
script:
|
||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
- docker push boerderij/varken:$TRAVIS_BRANCH
|
||||
|
||||
|
|
Loading…
Reference in a new issue