postal/.semaphore/upload.yml

43 lines
2.1 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:
- name: DOCKER_GITHUB
2021-03-18 04:44:17 +01:00
- name: DOCKER_HUB
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-01-22 14:21:23 +01:00
- echo "$DOCKER_GITHUB_PASS" | docker login docker.pkg.github.com --username "$DOCKER_GITHUB_USER" --password-stdin
2021-01-29 04:57:07 +01:00
- docker tag docker.pkg.github.com/catdeployed/docker-postal/postal:alpine docker.pkg.github.com/catdeployed/docker-postal/postal:latest
2021-01-25 07:11:02 +01:00
- docker push docker.pkg.github.com/catdeployed/docker-postal/postal:alpine
- docker push docker.pkg.github.com/catdeployed/docker-postal/postal:latest
2021-03-18 04:44:17 +01:00
- 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
- 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-01-22 14:21:23 +01:00
- echo "$DOCKER_GITHUB_PASS" | docker login docker.pkg.github.com --username "$DOCKER_GITHUB_USER" --password-stdin
2021-01-25 07:11:02 +01:00
- docker push docker.pkg.github.com/catdeployed/docker-postal/postal:ubuntu
2021-03-18 04:44:17 +01:00
- 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
- docker push catdeployed/postal:ubuntu
- artifact yank workflow postal-ubuntu-container.tar