2021-01-22 10:09:50 +01:00
|
|
|
version: v1.0
|
2021-01-22 11:38:44 +01:00
|
|
|
name: Docker Image Upload
|
2021-01-22 10:09:50 +01:00
|
|
|
agent:
|
|
|
|
machine:
|
|
|
|
type: e1-standard-2
|
|
|
|
os_image: ubuntu1804
|
2021-01-22 15:12:49 +01:00
|
|
|
global_job_config:
|
|
|
|
secrets:
|
2021-04-22 06:27:33 +02:00
|
|
|
- name: DOCKER_HUB_CATDEPLOYED
|
2021-01-22 10:09:50 +01:00
|
|
|
blocks:
|
|
|
|
- name: Upload
|
|
|
|
task:
|
|
|
|
jobs:
|
|
|
|
- name: 'Alpine Upload'
|
|
|
|
commands:
|
|
|
|
- checkout
|
|
|
|
- cd alpine
|
|
|
|
- artifact pull workflow postal-alpine-container.tar
|
|
|
|
- docker load -i postal-alpine-container.tar
|
2021-04-22 06:27:33 +02:00
|
|
|
- echo "$DOCKER_HUB_CATDEPLOYED_PASS" | docker login --username "$DOCKER_HUB_CATDEPLOYED_USER" --password-stdin
|
|
|
|
- docker tag catdeployed/postal:alpine catdeployed/postal:latest
|
2021-03-18 04:44:17 +01:00
|
|
|
- docker push catdeployed/postal:alpine
|
|
|
|
- docker push catdeployed/postal:latest
|
2021-01-22 11:38:44 +01:00
|
|
|
- artifact yank workflow postal-alpine-container.tar
|
2021-01-22 10:09:50 +01:00
|
|
|
- name: 'Ubuntu Upload'
|
|
|
|
commands:
|
|
|
|
- checkout
|
|
|
|
- cd ubuntu
|
|
|
|
- artifact pull workflow postal-ubuntu-container.tar
|
|
|
|
- docker load -i postal-ubuntu-container.tar
|
2021-04-22 06:27:33 +02:00
|
|
|
- echo "$DOCKER_HUB_CATDEPLOYED_PASS" | docker login --username "$DOCKER_HUB_CATDEPLOYED_USER" --password-stdin
|
2021-03-18 04:44:17 +01:00
|
|
|
- docker push catdeployed/postal:ubuntu
|
2021-01-22 11:38:44 +01:00
|
|
|
- artifact yank workflow postal-ubuntu-container.tar
|