postal/.semaphore/upload.yml
2021-01-22 04:09:50 -05:00

31 lines
1.4 KiB
YAML

version: v1.0
name: Pipeline 3
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
- echo "$DOCKER_GITHUB_PASS" | docker login docker.pkg.github.com -u "$DOCKER_GITHUB_USER" --password-stdin
- 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
- name: 'Ubuntu Upload'
commands:
- checkout
- 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 -u "$DOCKER_GITHUB_USER" --password-stdin
- 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