-
Notifications
You must be signed in to change notification settings - Fork 0
/
DashVid-Uploader.yml
98 lines (85 loc) · 2.19 KB
/
DashVid-Uploader.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
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
resource_types:
- name: slack-notification
type: docker-image
source:
repository: cfcommunity/slack-notification-resource
tag: latest
resources:
- name: source-code
type: git
source:
uri: https://github.com/JassoftLtd/DashVid-Uploader.git
branch: master
- name: version
type: semver
source:
driver: git
uri: [email protected]:JassoftLtd/DashVid-Uploader.git
branch: version
file: version
private_key: {{concourse-repo-private-key}}
- name: gh-release
type: github-release
source:
user: JassoftLtd
repository: DashVid-Uploader
access_token: {{gh_access_token}}
- name: slack-alert
type: slack-notification
source:
url: {{slack_webhook_url}}
jobs:
- name: DashVid-Uploader
plan:
- get: source-code
trigger: true
- get: version
params: {bump: minor}
- task: Build
privileged: true
config:
platform: linux
image_resource:
type: docker-image
source:
repository: amidos/dcind
inputs:
- name: source-code
outputs:
- name: artifact
run:
path: sh
args:
- -exc
- |
source /docker-lib.sh
start_docker
cd source-code
docker run -e BUILD_GOOS="linux darwin windows" -e BUILD_GOARCH="386 amd64" -v $(pwd)/DashVid:/src jonnyshaw89/golang-builder
docker run -e BUILD_GOOS="linux" -e BUILD_GOARCH="arm" -v $(pwd)/DashVid:/src jonnyshaw89/golang-builder
ls -ltrh DashVid
mkdir ../artifact/bin
cp DashVid/DashVid-Uploader* ../artifact/bin
on_failure:
put: slack-alert
params:
channel: '#build-notifications'
text: |
Build Failed. Check it out at:
http://concourse.jassoft.co.uk:8080/builds/$BUILD_ID
- put: gh-release
inputs:
- name: artifact
params:
name: version/version
tag: version/version
globs:
- artifact/bin/*
- put: version
params: {file: version/version}
- put: slack-alert
params:
channel: '#build-notifications'
text: |
DashVid Uploader Deployment Successful. Check it out at:
http://concourse.jassoft.co.uk:8080/builds/$BUILD_ID