update semaphore build

This commit is contained in:
ILoveYaToo 2021-01-28 22:42:18 -05:00
parent 11162bc149
commit c659325267
5 changed files with 8 additions and 9 deletions

View File

@ -12,15 +12,15 @@ blocks:
commands: commands:
- checkout - checkout
- cd alpine - cd alpine
- 'docker build --network=host -t catdeployed/postal:alpine .' - docker build --network=host -t docker.pkg.github.com/catdeployed/docker-postal/postal:alpine .
- docker save -o postal-alpine-container.tar catdeployed/postal:alpine - docker save -o postal-alpine-container.tar docker.pkg.github.com/catdeployed/docker-postal/postal:alpine
- artifact push workflow postal-alpine-container.tar --expire-in 1d - artifact push workflow postal-alpine-container.tar --expire-in 1d
- name: 'Ubuntu' - name: 'Ubuntu'
commands: commands:
- checkout - checkout
- cd ubuntu - cd ubuntu
- 'docker build --network=host -t catdeployed/postal:ubuntu .' - docker build --network=host -t docker.pkg.github.com/catdeployed/docker-postal/postal:ubuntu .
- docker save -o postal-ubuntu-container.tar catdeployed/postal:ubuntu - docker save -o postal-ubuntu-container.tar docker.pkg.github.com/catdeployed/docker-postal/postal:ubuntu
- artifact push workflow postal-ubuntu-container.tar --expire-in 1d - artifact push workflow postal-ubuntu-container.tar --expire-in 1d
promotions: promotions:
- name: Default Promotion - name: Default Promotion

View File

@ -22,6 +22,7 @@ blocks:
- cd ubuntu - cd ubuntu
- artifact pull workflow postal-ubuntu-container.tar - artifact pull workflow postal-ubuntu-container.tar
- docker load -i postal-ubuntu-container.tar - docker load -i postal-ubuntu-container.tar
- cp tests/docker-compose.yml docker-compose.yml
- docker-compose up -d - 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; - 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;
promotions: promotions:

View File

@ -18,8 +18,7 @@ blocks:
- artifact pull workflow postal-alpine-container.tar - artifact pull workflow postal-alpine-container.tar
- docker load -i postal-alpine-container.tar - docker load -i postal-alpine-container.tar
- echo "$DOCKER_GITHUB_PASS" | docker login docker.pkg.github.com --username "$DOCKER_GITHUB_USER" --password-stdin - echo "$DOCKER_GITHUB_PASS" | docker login docker.pkg.github.com --username "$DOCKER_GITHUB_USER" --password-stdin
- docker tag catdeployed/postal:alpine docker.pkg.github.com/catdeployed/docker-postal/postal:alpine - docker.pkg.github.com/catdeployed/docker-postal/postal:alpine docker.pkg.github.com/catdeployed/docker-postal/postal:latest
- 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:alpine
- docker push docker.pkg.github.com/catdeployed/docker-postal/postal:latest - docker push docker.pkg.github.com/catdeployed/docker-postal/postal:latest
- artifact yank workflow postal-alpine-container.tar - artifact yank workflow postal-alpine-container.tar
@ -30,6 +29,5 @@ blocks:
- artifact pull workflow postal-ubuntu-container.tar - artifact pull workflow postal-ubuntu-container.tar
- docker load -i postal-ubuntu-container.tar - docker load -i postal-ubuntu-container.tar
- echo "$DOCKER_GITHUB_PASS" | docker login docker.pkg.github.com --username "$DOCKER_GITHUB_USER" --password-stdin - echo "$DOCKER_GITHUB_PASS" | docker login docker.pkg.github.com --username "$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 - docker push docker.pkg.github.com/catdeployed/docker-postal/postal:ubuntu
- artifact yank workflow postal-ubuntu-container.tar - artifact yank workflow postal-ubuntu-container.tar

View File

@ -1,7 +1,7 @@
version: "3" version: "3"
services: services:
postal: postal:
image: catdeployed/postal:alpine image: docker.pkg.github.com/catdeployed/docker-postal/postal:alpine
container_name: postal container_name: postal
command: run command: run
ports: ports:

View File

@ -1,7 +1,7 @@
version: "3" version: "3"
services: services:
postal: postal:
image: catdeployed/postal:ubuntu image: docker.pkg.github.com/catdeployed/docker-postal/postal:ubuntu
container_name: postal container_name: postal
command: run command: run
tty: true tty: true