do some artifact testing
This commit is contained in:
parent
ae5ea33b9b
commit
5668db5e23
|
@ -13,11 +13,15 @@ blocks:
|
||||||
- checkout
|
- checkout
|
||||||
- cd alpine
|
- cd alpine
|
||||||
- 'docker build --network=host -t catdeployed/postal:alpine .'
|
- 'docker build --network=host -t catdeployed/postal:alpine .'
|
||||||
|
- docker save -o postal-alpine-container.tar catdeployed/postal:alpine
|
||||||
|
- artifact push job postal-alpine-container.tar --expire-in 1d
|
||||||
- name: 'Ubuntu'
|
- name: 'Ubuntu'
|
||||||
commands:
|
commands:
|
||||||
- checkout
|
- checkout
|
||||||
- cd ubuntu
|
- cd ubuntu
|
||||||
- 'docker build --network=host -t catdeployed/postal:ubuntu .'
|
- 'docker build --network=host -t catdeployed/postal:ubuntu .'
|
||||||
|
- docker save -o postal-ubuntu-container.tar catdeployed/postal:ubuntu
|
||||||
|
- artifact push job postal-ubuntu-container.tar --expire-in 1d
|
||||||
promotions:
|
promotions:
|
||||||
- name: Default Promotion
|
- name: Default Promotion
|
||||||
pipeline_file: tests.yml
|
pipeline_file: tests.yml
|
||||||
|
|
|
@ -12,11 +12,17 @@ blocks:
|
||||||
commands:
|
commands:
|
||||||
- checkout
|
- checkout
|
||||||
- cd alpine
|
- cd alpine
|
||||||
|
- artifact pull job postal-alpine-container.tar
|
||||||
|
- docker load -i postal-alpine-container.tar
|
||||||
- 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'
|
||||||
|
- artifact yank job job postal-alpine-container.tar
|
||||||
- name: 'Ubuntu Test'
|
- name: 'Ubuntu Test'
|
||||||
commands:
|
commands:
|
||||||
- checkout
|
- checkout
|
||||||
- cd ubuntu
|
- cd ubuntu
|
||||||
|
- artifact pull job postal-ubuntu-container.tar
|
||||||
|
- docker load -i postal-ubuntu-container.tar
|
||||||
- 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'
|
||||||
|
- artifact yank job job postal-ubuntu-container.tar
|
||||||
|
|
Loading…
Reference in New Issue
Block a user