postal/.semaphore/semaphore.yml

29 lines
657 B
YAML
Raw Normal View History

2020-12-27 07:17:44 +01:00
version: v1.0
name: Initial Pipeline
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
blocks:
2020-12-27 07:25:00 +01:00
- name: Build (Alpine)
2020-12-27 07:17:44 +01:00
task:
jobs:
- name: 'Job #1'
commands:
- checkout
2020-12-27 07:25:00 +01:00
- cd alpine
- 'docker build --network=host -t catdeployed/postal:alpine .'
- name: Build (Ubuntu)
task:
jobs:
- name: 'Job #1'
commands:
- checkout
2020-12-27 07:30:34 +01:00
- cd ubuntu
- 'docker build --network=host -t catdeployed/postal:ubuntu .'
2020-12-27 07:25:00 +01:00
promotions:
- name: Default Promotion
2020-12-27 07:30:34 +01:00
pipeline_file: tests.yml
2020-12-27 07:35:35 +01:00
auto_promote:
when: result = 'passed'