postal/.semaphore/semaphore.yml

33 lines
766 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 .'
skip:
2020-12-27 07:26:03 +01:00
when: branch != 'master'
2020-12-27 07:25:00 +01:00
- name: Build (Ubuntu)
skip:
2020-12-27 07:26:03 +01:00
when: branch != 'master'
2020-12-27 07:25:00 +01:00
task:
jobs:
- name: 'Job #1'
commands:
- checkout
- cd alpine
- 'docker build --network=host -t catdeployed/postal:alpine .'
promotions:
- name: Default Promotion
pipeline_file: pipeline_2.yml
auto_promote:
when: branch = 'master' AND result = 'passed'