From ae5ea33b9bd2728d5fd32cc9c3b688f9857fe964 Mon Sep 17 00:00:00 2001 From: ILoveYaToo Date: Sun, 27 Dec 2020 01:57:55 -0500 Subject: [PATCH] more testing --- .semaphore/semaphore.yml | 9 +++------ .semaphore/tests.yml | 9 +++------ alpine/docker-compose.yml | 3 +-- ubuntu/docker-compose.yml | 3 +-- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 9bfc578..418f129 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -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 diff --git a/.semaphore/tests.yml b/.semaphore/tests.yml index 260ca57..5109db3 100644 --- a/.semaphore/tests.yml +++ b/.semaphore/tests.yml @@ -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 diff --git a/alpine/docker-compose.yml b/alpine/docker-compose.yml index 7178b4c..f06a614 100644 --- a/alpine/docker-compose.yml +++ b/alpine/docker-compose.yml @@ -1,8 +1,7 @@ version: "3" services: postal: - #image: catdeployed/postal:alpine - build: . + image: catdeployed/postal:alpine container_name: postal command: run ports: diff --git a/ubuntu/docker-compose.yml b/ubuntu/docker-compose.yml index d6c4c33..68edd15 100644 --- a/ubuntu/docker-compose.yml +++ b/ubuntu/docker-compose.yml @@ -1,8 +1,7 @@ version: "3" services: postal: - #image: catdeployed/postal:ubuntu - build: . + image: catdeployed/postal:ubuntu container_name: postal command: run tty: true