diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 2b97234..9144450 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -1,5 +1,5 @@ version: v1.0 -name: Initial Pipeline +name: Docker Build agent: machine: type: e1-standard-2 diff --git a/.semaphore/tests.yml b/.semaphore/tests.yml index 4708a4d..1698675 100644 --- a/.semaphore/tests.yml +++ b/.semaphore/tests.yml @@ -1,5 +1,5 @@ version: v1.0 -name: Pipeline 2 +name: Docker Image Testing agent: machine: type: e1-standard-2 @@ -16,7 +16,6 @@ blocks: - docker load -i postal-alpine-container.tar - docker-compose up -d - for i in {1..20}; do if [[ $(docker inspect postal | jq -r '.[].State.Health.Status') == "healthy" ]]; then break; elif [[ $i -eq 20 ]]; then exit 1; else sleep 15; fi; done; - - artifact yank workflow postal-alpine-container.tar - name: 'Ubuntu Test' commands: - checkout @@ -25,7 +24,6 @@ blocks: - docker load -i postal-ubuntu-container.tar - docker-compose up -d - for i in {1..20}; do if [[ $(docker inspect postal | jq -r '.[].State.Health.Status') == "healthy" ]]; then break; elif [[ $i -eq 20 ]]; then exit 1; else sleep 15; fi; done; - - artifact yank workflow postal-ubuntu-container.tar promotions: - name: Default Promotion pipeline_file: upload.yml diff --git a/.semaphore/upload.yml b/.semaphore/upload.yml index c77488e..297e6a7 100644 --- a/.semaphore/upload.yml +++ b/.semaphore/upload.yml @@ -1,5 +1,5 @@ version: v1.0 -name: Pipeline 3 +name: Docker Image Upload agent: machine: type: e1-standard-2 @@ -19,6 +19,7 @@ blocks: - docker tag catdeployed/postal:alpine docker.pkg.github.com/CatDeployed/docker-postal/postal:latest - docker push docker.pkg.github.com/CatDeployed/docker-postal/postal:alpine - docker push docker.pkg.github.com/CatDeployed/docker-postal/postal:latest + - artifact yank workflow postal-alpine-container.tar - name: 'Ubuntu Upload' commands: - checkout @@ -28,3 +29,4 @@ blocks: - echo "$DOCKER_GITHUB_PASS" | docker login docker.pkg.github.com -u "$DOCKER_GITHUB_USER" --password-stdin - docker tag catdeployed/postal:ubuntu docker.pkg.github.com/CatDeployed/docker-postal/postal:ubuntu - docker push docker.pkg.github.com/CatDeployed/docker-postal/postal:ubuntu + - artifact yank workflow postal-ubuntu-container.tar