Merge remote-tracking branch 'origin/setup-semaphore' into development
This commit is contained in:
commit
cbdcef8847
15
.semaphore/pipeline_2.yml
Normal file
15
.semaphore/pipeline_2.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
version: v1.0
|
||||||
|
name: Pipeline 2
|
||||||
|
agent:
|
||||||
|
machine:
|
||||||
|
type: e1-standard-2
|
||||||
|
os_image: ubuntu1804
|
||||||
|
blocks:
|
||||||
|
- name: Test (Alpine)
|
||||||
|
task:
|
||||||
|
jobs:
|
||||||
|
- name: 'Job #1'
|
||||||
|
commands:
|
||||||
|
- cd alpine
|
||||||
|
- docker-compose up -d
|
||||||
|
- 'for i in {1..20}; do [ $(docker inspect postal | jq ''.[].State.Health.Status'') == "healthy" ] && break || sleep 15; done'
|
32
.semaphore/semaphore.yml
Normal file
32
.semaphore/semaphore.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
version: v1.0
|
||||||
|
name: Initial Pipeline
|
||||||
|
agent:
|
||||||
|
machine:
|
||||||
|
type: e1-standard-2
|
||||||
|
os_image: ubuntu1804
|
||||||
|
blocks:
|
||||||
|
- name: Build (Alpine)
|
||||||
|
task:
|
||||||
|
jobs:
|
||||||
|
- name: 'Job #1'
|
||||||
|
commands:
|
||||||
|
- checkout
|
||||||
|
- cd alpine
|
||||||
|
- 'docker build --network=host -t catdeployed/postal:alpine .'
|
||||||
|
skip:
|
||||||
|
when: branch != 'master'
|
||||||
|
- name: Build (Ubuntu)
|
||||||
|
skip:
|
||||||
|
when: branch != 'master'
|
||||||
|
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'
|
Loading…
Reference in New Issue
Block a user