more testing
This commit is contained in:
parent
f5cea2f169
commit
ae5ea33b9b
|
@ -5,18 +5,15 @@ agent:
|
|||
type: e1-standard-2
|
||||
os_image: ubuntu1804
|
||||
blocks:
|
||||
- name: Build (Alpine)
|
||||
- name: Build
|
||||
task:
|
||||
jobs:
|
||||
- name: 'Job #1'
|
||||
- name: 'Alpine'
|
||||
commands:
|
||||
- checkout
|
||||
- cd alpine
|
||||
- 'docker build --network=host -t catdeployed/postal:alpine .'
|
||||
- name: Build (Ubuntu)
|
||||
task:
|
||||
jobs:
|
||||
- name: 'Job #1'
|
||||
- name: 'Ubuntu'
|
||||
commands:
|
||||
- checkout
|
||||
- cd ubuntu
|
||||
|
|
|
@ -5,19 +5,16 @@ agent:
|
|||
type: e1-standard-2
|
||||
os_image: ubuntu1804
|
||||
blocks:
|
||||
- name: Test (Alpine)
|
||||
- name: Test
|
||||
task:
|
||||
jobs:
|
||||
- name: 'Job #1'
|
||||
- name: 'Alpine Test'
|
||||
commands:
|
||||
- checkout
|
||||
- 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'
|
||||
- name: 'Ubuntu Test'
|
||||
commands:
|
||||
- checkout
|
||||
- cd ubuntu
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
version: "3"
|
||||
services:
|
||||
postal:
|
||||
#image: catdeployed/postal:alpine
|
||||
build: .
|
||||
image: catdeployed/postal:alpine
|
||||
container_name: postal
|
||||
command: run
|
||||
ports:
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
version: "3"
|
||||
services:
|
||||
postal:
|
||||
#image: catdeployed/postal:ubuntu
|
||||
build: .
|
||||
image: catdeployed/postal:ubuntu
|
||||
container_name: postal
|
||||
command: run
|
||||
tty: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user