This repository was archived by the owner on May 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatical_package.yml
More file actions
105 lines (83 loc) · 2.48 KB
/
datical_package.yml
File metadata and controls
105 lines (83 loc) · 2.48 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
resources:
- name: resource-ddb
type: git
source:
branch: master
uri: {{gist-url}}
username: {{git-username}}
password: {{git-password}}
- name: resource-sql
type: git
source:
branch: pipeline1
uri: {{sql-url}}
username: {{git-username}}
password: {{git-password}}
jobs:
- name: package
plan:
- get: resource-ddb
- get: resource-sql
- task: commit
config:
platform: linux
image_resource:
type: docker-image
source:
repository: dockerusername/dockerrepos
tag: dockertag
inputs:
- name: resource-ddb
- name: resource-sql
outputs:
- name: ddb
run:
path: /bin/bash
args:
- -c
- |
set -eux
export PATH=$PATH:/u01/app/oracle/product/11.2.0/xe/bin/
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
git clone resource-ddb ddb
git clone resource-sql sql
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL ADDRESS"
cd sql
git show-branch
git branch --set-upstream-to=origin/pipeline1 pipeline1
cd ../ddb
git branch --set-upstream-to=origin/master master
/app/datical/repl/hammer groovy deployPackager.groovy pipeline1 scm=true
curl -k --request POST "https://<daticaldmchostname>/service/reporting/qa/v1/audit-db/sync"
- put: resource-ddb
params: {repository: ddb}
- name: deploy-dev
plan:
- aggregate:
- get: resource-ddb
passed: [package]
- task: commit
config:
platform: linux
image_resource:
type: docker-image
source:
repository: dockerusername/dockerrepos
tag: dockertag
inputs:
- name: resource-ddb
run:
path: /bin/bash
args:
- -c
- |
set -eux
git clone resource-ddb ddb
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL ADDRESS"
cd ddb
git branch --set-upstream-to=origin/master master
/app/datical/repl/hammer deploy DEV --labels=\$all
curl -k --request POST "https://<daticaldmchostname>/service/reporting/qa/v1/audit-db/sync"