forked from giantswarm/prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
63 lines (54 loc) · 1.59 KB
/
config.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
version: 2
jobs:
lint:
docker:
- image: quay.io/giantswarm/shellcheck-alpine:v0.6.0
steps:
- checkout
- run:
name: lint scripts
command: shellcheck -x ci-scripts/*
build:
working_directory: /home/circleci/.go_workspace/src/github.com/giantswarm/prometheus
machine: true
steps:
- checkout
- run: |
wget -q $(curl -sS -H "Authorization: token $RELEASE_TOKEN" https://api.github.com/repos/giantswarm/architect/releases/latest | grep browser_download_url | head -n 1 | cut -d '"' -f 4)
chmod +x ./architect
./architect version
- run:
name: Template and push to quay
command: ./architect build
- store_test_results:
path: /tmp/results
publish-github-release:
docker:
- image: quay.io/giantswarm/github:0.12
steps:
- checkout
- run:
name: "Package Helm Chart"
command: |
./ci-scripts/package.sh ${CIRCLE_PROJECT_REPONAME} ${CIRCLE_TAG}
- run:
name: "Publish Release on GitHub"
command: |
ghr -t ${PERSONAL_ACCESS_TOKEN} -u giantswarm -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} "${CIRCLE_PROJECT_REPONAME}-chart-${CIRCLE_TAG:1}.tgz"
workflows:
version: 2
build-deploy:
jobs:
- lint
- build:
filters:
tags:
only: /^v\d+\.\d+\.\d+$/
- publish-github-release:
requires:
- build
filters:
branches:
ignore: /.*/
tags:
only: /^v\d+\.\d+\.\d+$/