Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Commit 0e4a51b

Browse files
committed
Added deploy to bluemix button
1 parent ac8e7b9 commit 0e4a51b

File tree

12 files changed

+771
-0
lines changed

12 files changed

+771
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.bluemix/deploy.json

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "Sample Deploy Stage",
4+
"description": "sample toolchain",
5+
"longDescription": "The Delivery Pipeline automates continuous deployment.",
6+
"type": "object",
7+
"properties": {
8+
"prod-region": {
9+
"description": "The bluemix region",
10+
"type": "string"
11+
},
12+
"prod-organization": {
13+
"description": "The bluemix org",
14+
"type": "string"
15+
},
16+
"prod-space": {
17+
"description": "The bluemix space",
18+
"type": "string"
19+
},
20+
"prod-app-name": {
21+
"description": "The name of your Hello World app",
22+
"type": "string"
23+
}
24+
},
25+
"required": ["prod-region", "prod-organization", "prod-space", "prod-app-name"],
26+
"form": [
27+
{
28+
"type": "validator",
29+
"url": "/devops/setup/bm-helper/helper.html"
30+
},
31+
{
32+
"type": "text",
33+
"readonly": false,
34+
"title": "App name",
35+
"key": "prod-app-name"
36+
},
37+
{
38+
"type": "table",
39+
"columnCount": 4,
40+
"widths": ["15%", "28%", "28%", "28%"],
41+
"items": [
42+
{
43+
"type": "label",
44+
"title": ""
45+
},
46+
{
47+
"type": "label",
48+
"title": "Region"
49+
},
50+
{
51+
"type": "label",
52+
"title": "Organization"
53+
},
54+
{
55+
"type": "label",
56+
"title": "Space"
57+
},
58+
{
59+
"type": "label",
60+
"title": "Production stage"
61+
},
62+
{
63+
"type": "select",
64+
"key": "prod-region"
65+
},
66+
{
67+
"type": "select",
68+
"key": "prod-organization"
69+
},
70+
{
71+
"type": "select",
72+
"key": "prod-space",
73+
"readonly": false
74+
}
75+
]
76+
}
77+
]
78+
}

.bluemix/icon.svg

Lines changed: 35 additions & 0 deletions
Loading

.bluemix/pipeline.yml

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

0 commit comments

Comments
 (0)