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
|
|
|
|
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-22 10:09:50 +01:00
|
|
|
- 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 push docker.pkg.github.com/CatDeployed/docker-postal/postal:alpine
|
|
|
|
- docker push docker.pkg.github.com/CatDeployed/docker-postal/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-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-22 10:09:50 +01:00
|
|
|
- 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
|
2021-01-22 11:38:44 +01:00
|
|
|
- artifact yank workflow postal-ubuntu-container.tar
|