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:57:55 +01:00
|
|
|
- name: Build
|
2020-12-27 07:17:44 +01:00
|
|
|
task:
|
|
|
|
jobs:
|
2020-12-27 07:57:55 +01:00
|
|
|
- name: 'Alpine'
|
2020-12-27 07:17:44 +01:00
|
|
|
commands:
|
|
|
|
- checkout
|
2020-12-27 07:25:00 +01:00
|
|
|
- cd alpine
|
|
|
|
- 'docker build --network=host -t catdeployed/postal:alpine .'
|
2020-12-27 08:18:20 +01:00
|
|
|
- docker save -o postal-alpine-container.tar catdeployed/postal:alpine
|
|
|
|
- artifact push job postal-alpine-container.tar --expire-in 1d
|
2020-12-27 07:57:55 +01:00
|
|
|
- name: 'Ubuntu'
|
2020-12-27 07:25:00 +01:00
|
|
|
commands:
|
|
|
|
- checkout
|
2020-12-27 07:30:34 +01:00
|
|
|
- cd ubuntu
|
|
|
|
- 'docker build --network=host -t catdeployed/postal:ubuntu .'
|
2020-12-27 08:18:20 +01:00
|
|
|
- docker save -o postal-ubuntu-container.tar catdeployed/postal:ubuntu
|
|
|
|
- artifact push job postal-ubuntu-container.tar --expire-in 1d
|
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'
|