more testing

This commit is contained in:
ILoveYaToo 2020-12-27 01:57:55 -05:00
parent f5cea2f169
commit ae5ea33b9b
4 changed files with 8 additions and 16 deletions

View File

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

View File

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

View File

@ -1,8 +1,7 @@
version: "3"
services:
postal:
#image: catdeployed/postal:alpine
build: .
image: catdeployed/postal:alpine
container_name: postal
command: run
ports:

View File

@ -1,8 +1,7 @@
version: "3"
services:
postal:
#image: catdeployed/postal:ubuntu
build: .
image: catdeployed/postal:ubuntu
container_name: postal
command: run
tty: true