test now
This commit is contained in:
parent
cbdcef8847
commit
6828bd8183
|
@ -13,20 +13,14 @@ blocks:
|
||||||
- checkout
|
- checkout
|
||||||
- cd alpine
|
- cd alpine
|
||||||
- 'docker build --network=host -t catdeployed/postal:alpine .'
|
- 'docker build --network=host -t catdeployed/postal:alpine .'
|
||||||
skip:
|
|
||||||
when: branch != 'master'
|
|
||||||
- name: Build (Ubuntu)
|
- name: Build (Ubuntu)
|
||||||
skip:
|
|
||||||
when: branch != 'master'
|
|
||||||
task:
|
task:
|
||||||
jobs:
|
jobs:
|
||||||
- name: 'Job #1'
|
- name: 'Job #1'
|
||||||
commands:
|
commands:
|
||||||
- checkout
|
- checkout
|
||||||
- cd alpine
|
- cd ubuntu
|
||||||
- 'docker build --network=host -t catdeployed/postal:alpine .'
|
- 'docker build --network=host -t catdeployed/postal:ubuntu .'
|
||||||
promotions:
|
promotions:
|
||||||
- name: Default Promotion
|
- name: Default Promotion
|
||||||
pipeline_file: pipeline_2.yml
|
pipeline_file: tests.yml
|
||||||
auto_promote:
|
|
||||||
when: branch = 'master' AND result = 'passed'
|
|
||||||
|
|
|
@ -13,3 +13,11 @@ blocks:
|
||||||
- cd alpine
|
- cd alpine
|
||||||
- docker-compose up -d
|
- docker-compose up -d
|
||||||
- 'for i in {1..20}; do [ $(docker inspect postal | jq ''.[].State.Health.Status'') == "healthy" ] && break || sleep 15; done'
|
- 'for i in {1..20}; do [ $(docker inspect postal | jq ''.[].State.Health.Status'') == "healthy" ] && break || sleep 15; done'
|
||||||
|
- name: Test (Ubuntu)
|
||||||
|
task:
|
||||||
|
jobs:
|
||||||
|
- name: 'Job #1'
|
||||||
|
commands:
|
||||||
|
- cd ubuntu
|
||||||
|
- docker-compose up -d
|
||||||
|
- 'for i in {1..20}; do [ $(docker inspect postal | jq ''.[].State.Health.Status'') == "healthy" ] && break || sleep 15; done'
|
Loading…
Reference in New Issue
Block a user