From 5668db5e2320ed20d1c8022b61946571f967e46e Mon Sep 17 00:00:00 2001 From: ILoveYaToo Date: Sun, 27 Dec 2020 02:18:20 -0500 Subject: [PATCH] do some artifact testing --- .semaphore/semaphore.yml | 4 ++++ .semaphore/tests.yml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 418f129..7ca353f 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -13,11 +13,15 @@ blocks: - checkout - cd 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' commands: - checkout - cd 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: - name: Default Promotion pipeline_file: tests.yml diff --git a/.semaphore/tests.yml b/.semaphore/tests.yml index 5109db3..150af36 100644 --- a/.semaphore/tests.yml +++ b/.semaphore/tests.yml @@ -12,11 +12,17 @@ blocks: commands: - checkout - cd alpine + - artifact pull job postal-alpine-container.tar + - docker load -i postal-alpine-container.tar - docker-compose up -d - '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' commands: - checkout - cd ubuntu + - artifact pull job postal-ubuntu-container.tar + - docker load -i postal-ubuntu-container.tar - docker-compose up -d - '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