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 - 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'

View File

@ -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'