This commit is contained in:
ILoveYaToo 2020-12-27 01:30:34 -05:00
parent cbdcef8847
commit 6828bd8183
2 changed files with 11 additions and 9 deletions

View File

@ -13,20 +13,14 @@ blocks:
- checkout
- cd alpine
- 'docker build --network=host -t catdeployed/postal:alpine .'
skip:
when: branch != 'master'
- name: Build (Ubuntu)
skip:
when: branch != 'master'
task:
jobs:
- name: 'Job #1'
commands:
- checkout
- cd alpine
- 'docker build --network=host -t catdeployed/postal:alpine .'
- cd ubuntu
- 'docker build --network=host -t catdeployed/postal:ubuntu .'
promotions:
- name: Default Promotion
pipeline_file: pipeline_2.yml
auto_promote:
when: branch = 'master' AND result = 'passed'
pipeline_file: tests.yml

View File

@ -13,3 +13,11 @@ blocks:
- cd alpine
- docker-compose up -d
- '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'