postal/.semaphore/semaphore.yml
2021-01-28 22:42:18 -05:00

30 lines
1.0 KiB
YAML

version: v1.0
name: Docker Build
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
blocks:
- name: Build
task:
jobs:
- name: 'Alpine'
commands:
- checkout
- cd alpine
- docker build --network=host -t docker.pkg.github.com/catdeployed/docker-postal/postal:alpine .
- docker save -o postal-alpine-container.tar docker.pkg.github.com/catdeployed/docker-postal/postal:alpine
- artifact push workflow postal-alpine-container.tar --expire-in 1d
- name: 'Ubuntu'
commands:
- checkout
- cd ubuntu
- docker build --network=host -t docker.pkg.github.com/catdeployed/docker-postal/postal:ubuntu .
- docker save -o postal-ubuntu-container.tar docker.pkg.github.com/catdeployed/docker-postal/postal:ubuntu
- artifact push workflow postal-ubuntu-container.tar --expire-in 1d
promotions:
- name: Default Promotion
pipeline_file: tests.yml
auto_promote:
when: result = 'passed'