update semaphore build
This commit is contained in:
parent
11162bc149
commit
c659325267
|
@ -12,15 +12,15 @@ blocks:
|
|||
commands:
|
||||
- checkout
|
||||
- cd alpine
|
||||
- 'docker build --network=host -t catdeployed/postal:alpine .'
|
||||
- docker save -o postal-alpine-container.tar catdeployed/postal:alpine
|
||||
- docker build --network=host -t docker.pkg.github.com/catdeployed/docker-postal/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
|
||||
- name: 'Ubuntu'
|
||||
commands:
|
||||
- checkout
|
||||
- cd ubuntu
|
||||
- 'docker build --network=host -t catdeployed/postal:ubuntu .'
|
||||
- docker save -o postal-ubuntu-container.tar catdeployed/postal:ubuntu
|
||||
- docker build --network=host -t docker.pkg.github.com/catdeployed/docker-postal/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
|
||||
promotions:
|
||||
- name: Default Promotion
|
||||
|
|
|
@ -22,6 +22,7 @@ blocks:
|
|||
- cd ubuntu
|
||||
- artifact pull workflow postal-ubuntu-container.tar
|
||||
- docker load -i postal-ubuntu-container.tar
|
||||
- cp tests/docker-compose.yml docker-compose.yml
|
||||
- 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;
|
||||
promotions:
|
||||
|
|
|
@ -18,8 +18,7 @@ blocks:
|
|||
- artifact pull workflow 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
|
||||
- docker tag catdeployed/postal:alpine docker.pkg.github.com/catdeployed/docker-postal/postal:alpine
|
||||
- docker tag catdeployed/postal:alpine docker.pkg.github.com/catdeployed/docker-postal/postal:latest
|
||||
- docker.pkg.github.com/catdeployed/docker-postal/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
|
||||
|
@ -30,6 +29,5 @@ blocks:
|
|||
- artifact pull workflow 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
|
||||
- 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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
version: "3"
|
||||
services:
|
||||
postal:
|
||||
image: catdeployed/postal:alpine
|
||||
image: docker.pkg.github.com/catdeployed/docker-postal/postal:alpine
|
||||
container_name: postal
|
||||
command: run
|
||||
ports:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
version: "3"
|
||||
services:
|
||||
postal:
|
||||
image: catdeployed/postal:ubuntu
|
||||
image: docker.pkg.github.com/catdeployed/docker-postal/postal:ubuntu
|
||||
container_name: postal
|
||||
command: run
|
||||
tty: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user