-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpipeline.yml
More file actions
105 lines (100 loc) · 2.68 KB
/
pipeline.yml
File metadata and controls
105 lines (100 loc) · 2.68 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
---
display:
background_image: https://3.bp.blogspot.com/-aOHsI5ilwIA/TyU472gAhiI/AAAAAAAAAY8/-WadyZyD0ls/s1600/Skiing_Jump_Winter_Sport_HD_Wallpaper-Vvallpaper.Net.jpg
# Uncomment for commit statuses
#resource_types:
# - name: cogito
# type: registry-image
# check_every: 1h
# source:
# repository: pix4d/cogito
resources:
- name: git-repo
type: git
icon: github
source:
branch: master
# Uncomment for private repos
# username: ((github-username))
# password: ((github-token))
uri: https://github.com/uqmc/pipeline-example
# Uncomment for commit statuses
# - name: commit-status
# type: cogito
# check_every: 1h
# source:
# owner: uqmc
# repo: example-pipeline
# access_token: ((github-token))
jobs:
# Build and CI
- name: build
# Uncomment for commit statuses
# on_success:
# do:
# - put: commit-status
# input: [git-repo]
# params:
# state: success
# on_failure:
# do:
# - put: commit-status
# inputs: [git-repo]
# params:
# state: failure
# on_error:
# do:
# - put: commit-status
# inputs: [git-repo]
# params:
# state: error
plan:
- get: git-repo
trigger: true
# Uncomment for commit statuses
# - put: commit-status
# params:
# state: pending
- task: build
privileged: true
config:
platform: linux
image_resource:
type: registry-image
source:
repository: vito/oci-build-task
inputs:
- name: git-repo
path: .
run:
path: build
# Deploy docker-compose
- name: deploy
serial: true
plan:
- get: git-repo
trigger: true
passed: [build]
- task: deploy
privileged: true
# Pulls karlkfi/concourse-dcind which spawns a container
# with docker and docker-compose which takes our code as input
# and lets us run arbitrary docker commands on it.
# In this case, we're running our compose (daemonised,
# to not block the the pipeline from ending)
config:
platform: linux
image_resource:
type: docker-image
source:
repository: karlkfi/concourse-dcind
inputs:
- name: git-repo
run:
path: entrypoint.sh
args:
- bash
- -ceux
- |
docker-compose -f git-repo/docker-compose.yml -H socat:1234 down
docker-compose -f git-repo/docker-compose.yml -H socat:1234 up --build -d