test update
This commit is contained in:
parent
dc602b13d2
commit
4c1e513f00
|
@ -12,15 +12,15 @@ blocks:
|
|||
commands:
|
||||
- checkout
|
||||
- cd 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
|
||||
- docker build --network=host -t catdeployed/postal:alpine .
|
||||
- docker save -o postal-alpine-container.tar catdeployed/postal:alpine
|
||||
- artifact push workflow postal-alpine-container.tar --expire-in 1d
|
||||
- name: 'Ubuntu'
|
||||
commands:
|
||||
- checkout
|
||||
- cd 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
|
||||
- docker build --network=host -t catdeployed/postal:ubuntu .
|
||||
- docker save -o postal-ubuntu-container.tar catdeployed/postal:ubuntu
|
||||
- artifact push workflow postal-ubuntu-container.tar --expire-in 1d
|
||||
promotions:
|
||||
- name: Docker Image Testing
|
||||
|
|
|
@ -4,10 +4,6 @@ agent:
|
|||
machine:
|
||||
type: e1-standard-2
|
||||
os_image: ubuntu1804
|
||||
global_job_config:
|
||||
secrets:
|
||||
- name: DOCKER_GITHUB
|
||||
- name: DOCKER_HUB
|
||||
blocks:
|
||||
- name: Upload
|
||||
task:
|
||||
|
|
|
@ -6,8 +6,7 @@ agent:
|
|||
os_image: ubuntu1804
|
||||
global_job_config:
|
||||
secrets:
|
||||
- name: DOCKER_GITHUB
|
||||
- name: DOCKER_HUB
|
||||
- name: DOCKER_HUB_CATDEPLOYED
|
||||
blocks:
|
||||
- name: Upload
|
||||
task:
|
||||
|
@ -18,13 +17,8 @@ blocks:
|
|||
- cd alpine
|
||||
- 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 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
|
||||
- echo "$DOCKER_HUB_PASS" | docker login --username "$DOCKER_HUB_USER" --password-stdin
|
||||
- docker tag docker.pkg.github.com/catdeployed/docker-postal/postal:alpine catdeployed/postal:alpine
|
||||
- docker tag docker.pkg.github.com/catdeployed/docker-postal/postal:alpine catdeployed/postal:latest
|
||||
- echo "$DOCKER_HUB_CATDEPLOYED_PASS" | docker login --username "$DOCKER_HUB_CATDEPLOYED_USER" --password-stdin
|
||||
- docker tag catdeployed/postal:alpine catdeployed/postal:latest
|
||||
- docker push catdeployed/postal:alpine
|
||||
- docker push catdeployed/postal:latest
|
||||
- artifact yank workflow postal-alpine-container.tar
|
||||
|
@ -34,9 +28,6 @@ blocks:
|
|||
- cd ubuntu
|
||||
- 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 push docker.pkg.github.com/catdeployed/docker-postal/postal:ubuntu
|
||||
- echo "$DOCKER_HUB_PASS" | docker login --username "$DOCKER_HUB_USER" --password-stdin
|
||||
- docker tag docker.pkg.github.com/catdeployed/docker-postal/postal:ubuntu catdeployed/postal:ubuntu
|
||||
- echo "$DOCKER_HUB_CATDEPLOYED_PASS" | docker login --username "$DOCKER_HUB_CATDEPLOYED_USER" --password-stdin
|
||||
- docker push catdeployed/postal:ubuntu
|
||||
- artifact yank workflow postal-ubuntu-container.tar
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
version: "3"
|
||||
services:
|
||||
postal:
|
||||
image: docker.pkg.github.com/catdeployed/docker-postal/postal:alpine
|
||||
image: catdeployed/postal:alpine
|
||||
container_name: postal
|
||||
command: run
|
||||
ports:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
version: "3"
|
||||
services:
|
||||
postal:
|
||||
image: docker.pkg.github.com/catdeployed/docker-postal/postal:ubuntu
|
||||
image: catdeployed/postal:ubuntu
|
||||
container_name: postal
|
||||
command: run
|
||||
tty: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user