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