-
Notifications
You must be signed in to change notification settings - Fork 0
/
.concourse.yml
62 lines (60 loc) · 1.84 KB
/
.concourse.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
60
61
62
---
resources:
- name: proxy_repo
type: git
source:
uri: https://github.com/EMC-Underground/service_proxy.git
branch: dev
- name: daily
type: time
source:
location: America/Los_Angeles
start: 5:00 AM
stop: 6:00 AM
jobs:
- name: job_deploy_proxy
public: true
plan:
- get: proxy_repo
- get: daily
trigger: true
- task: update-proxy
params:
DNS_SUFFIX: ((dnssuffix))
DOCKER_HOST: ((dockerhost))
PERSISTENCE_DRIVER: ((persistence_driver))
NFS_SERVER: ((nfs_server))
NFS_SHARE: ((nfs_share))
DOCKER_SERVICE: traefik
DOCKER_STACK: proxy
config:
platform: linux
image_resource:
type: docker-image
source:
repository: nctiggy/image_seti_builder
tag: latest
inputs:
- name: proxy_repo
run:
path: bash
args:
- -c
- |
cd proxy_repo
export COMMIT_MESSAGE=`git log -1 --oneline --format=%s`
export BRANCH_NAME=`git branch -a | awk 'FNR==2{print $1}'`
cat docker-compose.yml.tmpl | python3 variables_injector.py > docker-compose.yml
cat << EOM
Deploying Docker Stack
REPO Info:
Branch Name: ${BRANCH_NAME}
Commit Message: ${COMMIT_MESSAGE}
Docker Info:
Stack Name: ${BRANCH_NAME}
Service Name: ${DOCKER_SERVICE}
Persistence Driver: ${PERSISTENCE_DRIVER}
Docker Host: ${DOCKER_HOST}
Service URL: http://${DOCKER_STACK}.${DNS_SUFFIX}
EOM
bash <(curl -fsSL https://raw.githubusercontent.com/EMC-Underground/service_overlord/master/service_overlord.sh) create_web --stack ${DOCKER_STACK} --service ${DOCKER_SERVICE} --docker_host ${DOCKER_HOST} --dns_suffix ${DNS_SUFFIX}