postal/.semaphore/upload-production.yml

34 lines
1.2 KiB
YAML
Raw Normal View History

2021-01-22 10:09:50 +01:00
version: v1.0
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
- 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
- artifact yank workflow postal-ubuntu-container.tar