/
pipeline.yml
59 lines (59 loc) · 1.35 KB
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
stages:
- name: BUILD
inputs:
- type: git
branch: master
service: ${SAMPLE_REPO}
triggers:
- type: commit
jobs:
- name: Build
type: builder
artifact_dir: ''
build_type: shell
script: |-
#!/bin/bash
bash -n *.sh
- name: DEPLOY
inputs:
- type: job
stage: BUILD
job: Build
dir_name: null
triggers:
- type: stage
properties:
- name: BLUEMIX_USER
type: text
value: ${BLUEMIX_USER}
- name: BLUEMIX_PASSWORD
type: secure
value: ${BLUEMIX_PASSWORD}
- name: BLUEMIX_ACCOUNT
type: secure
value: ${BLUEMIX_ACCOUNT}
- name: CLUSTER_NAME
type: text
value: ${CLUSTER_NAME}
- name: API_KEY
type: secure
value: ${API_KEY}
jobs:
- name: Deploy
type: deployer
target:
region_id: ${PROD_REGION_ID}
organization: ${PROD_ORG_NAME}
space: ${PROD_SPACE_NAME}
application: Pipeline
script: |
#!/bin/bash
. ./scripts/install_bx.sh
./scripts/bx_login.sh
./scripts/deploy.sh
hooks:
- enabled: true
label: null
ssl_enabled: false
url: https://devops-api-integration.stage1.ng.bluemix.net/v1/messaging/webhook/publish