kite 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/CHANGELOG.md +18 -1
- data/Dockerfile +30 -9
- data/Makefile +21 -9
- data/README.md +9 -0
- data/bin/concourse/check +12 -0
- data/bin/concourse/in +12 -0
- data/bin/concourse/out +46 -0
- data/config/pipelines/review.yml +158 -0
- data/config/pipelines/tasks/create-pull-requests-tag.yml +13 -0
- data/config/pipelines/tasks/create-repository-tag.yml +13 -0
- data/config/pipelines/tasks/run-master-tests.yml +12 -0
- data/config/pipelines/tasks/run-pr-tests.yml +12 -0
- data/kite.gemspec +1 -1
- data/lib/kite/generate.rb +39 -0
- data/lib/kite/helpers/concourse.rb +36 -0
- data/lib/kite/render.rb +68 -2
- data/lib/kite/version.rb +1 -1
- data/tpl/aws/README.md +20 -0
- data/tpl/aws/bin/concourse-deploy.sh.tt +4 -1
- data/tpl/aws/bin/ingress-deploy.sh.tt +7 -0
- data/tpl/aws/bin/ingress-update.sh.tt +7 -0
- data/tpl/aws/bin/kops-delete.sh.erb +5 -0
- data/tpl/aws/bin/kops-deploy.sh.erb +11 -0
- data/tpl/aws/bin/oauth-deploy.sh.tt +17 -0
- data/tpl/aws/bin/prometheus-deploy.sh.tt +23 -0
- data/tpl/aws/bosh-vars.yml.erb +1 -0
- data/tpl/aws/config/oauth.yml +59 -0
- data/tpl/aws/deployments/bosh/cloud-config.yml.tt +17 -1
- data/tpl/aws/deployments/concourse/concourse.yml.tt +6 -0
- data/tpl/aws/deployments/ingress/ingress.yml.erb +78 -0
- data/tpl/aws/deployments/oauth/oauth.yml.tt +95 -0
- data/tpl/aws/deployments/prometheus/monitor-bosh.yml +518 -0
- data/tpl/aws/deployments/prometheus/monitor-kubernetes.yml +30 -0
- data/tpl/aws/deployments/prometheus/prometheus.yml.tt +184 -0
- data/tpl/aws/docs/concourse.md +2 -2
- data/tpl/aws/docs/ingress.md +14 -0
- data/tpl/aws/docs/kops.md +5 -8
- data/tpl/aws/docs/oauth.md +24 -0
- data/tpl/aws/docs/prometheus.md +31 -0
- data/tpl/aws/terraform/kite_bucket.tf +8 -0
- data/tpl/aws/terraform/network.tf.tt +27 -0
- data/tpl/aws/terraform/outputs.tf +4 -0
- data/tpl/aws/terraform/terraform.tfvars.tt +1 -0
- data/tpl/aws/terraform/variables.tf +4 -0
- data/tpl/gcp/README.md +19 -3
- data/tpl/gcp/bin/base/setup-tunnel.sh.tt +8 -3
- data/tpl/gcp/bin/bosh-install.sh.tt +4 -0
- data/tpl/gcp/bin/concourse-deploy.sh.tt +4 -1
- data/tpl/gcp/bin/ingress-deploy.sh.tt +7 -0
- data/tpl/gcp/bin/ingress-update.sh.tt +7 -0
- data/tpl/gcp/bin/oauth-deploy.sh.tt +19 -0
- data/tpl/gcp/bin/prometheus-deploy.sh.tt +23 -0
- data/tpl/gcp/bin/vault-deploy.sh.tt +1 -1
- data/tpl/gcp/bosh-vars.yml.erb +1 -0
- data/tpl/gcp/config/oauth.yml +59 -0
- data/tpl/gcp/deployments/bosh/cloud-config.yml.tt +17 -3
- data/tpl/gcp/deployments/concourse/concourse.yml.tt +15 -5
- data/tpl/gcp/deployments/ingress/ingress.yml.erb +111 -0
- data/tpl/gcp/deployments/oauth/oauth.yml.tt +95 -0
- data/tpl/gcp/deployments/prometheus/monitor-bosh.yml +518 -0
- data/tpl/gcp/deployments/prometheus/monitor-kubernetes.yml +30 -0
- data/tpl/gcp/deployments/prometheus/prometheus.yml +183 -0
- data/tpl/gcp/docs/bosh.md +5 -0
- data/tpl/gcp/docs/concourse.md +3 -3
- data/tpl/gcp/docs/ingress.md +12 -0
- data/tpl/gcp/docs/oauth.md +24 -0
- data/tpl/gcp/docs/prometheus.md +27 -0
- data/tpl/gcp/docs/vault.md +2 -1
- data/tpl/gcp/terraform/main.tf +6 -1
- data/tpl/gcp/terraform/outputs.tf +4 -0
- data/tpl/service/%output_path%/charts/%app_name%/Chart.yaml.tt +4 -0
- data/tpl/service/%output_path%/charts/%app_name%/templates/NOTES.txt.tt +19 -0
- data/tpl/service/%output_path%/charts/%app_name%/templates/_helpers.tpl +16 -0
- data/tpl/service/%output_path%/charts/%app_name%/templates/deployment.yaml +37 -0
- data/tpl/service/%output_path%/charts/%app_name%/templates/ingress.yaml +32 -0
- data/tpl/service/%output_path%/charts/%app_name%/templates/service.yaml +19 -0
- data/tpl/service/%output_path%/charts/%app_name%/values.yaml.tt +37 -0
- data/tpl/service/%output_path%/environments/.keep +0 -0
- data/tpl/service/%output_path%/pipelines/review.yml.tt +189 -0
- data/tpl/service/%output_path%/pipelines/tasks/create-pull-requests-tag.yml.tt +13 -0
- data/tpl/service/%output_path%/pipelines/tasks/create-repository-tag.yml.tt +13 -0
- data/tpl/service/%output_path%/pipelines/tasks/helm-deploy.yml.tt +22 -0
- data/tpl/service/%output_path%/pipelines/tasks/run-master-tests.yml.tt +12 -0
- data/tpl/service/%output_path%/pipelines/tasks/run-pr-tests.yml.tt +12 -0
- data/tpl/service/Dockerfile.tt +4 -0
- data/tpl/service/Makefile.tt +28 -0
- data/tpl/service/VERSION.tt +1 -0
- data/tpl/service/docs/pipeline.md.tt +58 -0
- data/tpl/skel/config/cloud.yml +30 -5
- metadata +58 -5
- data/tpl/gcp/deployments/nginx/nginx.yml.erb +0 -62
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25b3ffbf1ab0d9f9051e151fd1732e530bb34140
|
4
|
+
data.tar.gz: 87ec25eebd7051aadd66108ee9c07edc2c3075ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d76705019d103462282d966f858e44b525fd22457b9b86a742bbbba59b2ceca08b5dfd1f89abe862954748321566d5fd3b6140fd6de9d03eb5362a35fc1a31fc
|
7
|
+
data.tar.gz: 371cb05797eff3bcc7a7586683dd0f7354e2269c5c6800abfe21528e017f19c64a52d10f6ff24bc7038f4ac16f8a6f6350d57554dcb40045c6ed1a398877226e
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.1.0](https://github.com/helios-technologies/kite/tree/v0.1.0) (2017-10-09)
|
4
|
+
[Full Changelog](https://github.com/helios-technologies/kite/compare/v0.0.9...v0.1.0)
|
5
|
+
|
6
|
+
**Closed issues:**
|
7
|
+
|
8
|
+
- Use read-only Vault token for Concourse [\#49](https://github.com/helios-technologies/kite/issues/49)
|
9
|
+
- Remove credentials from manifest [\#48](https://github.com/helios-technologies/kite/issues/48)
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- Replaced rendering db and auth passwords with BOSH interpolation [\#59](https://github.com/helios-technologies/kite/pull/59) ([vshatravenko](https://github.com/vshatravenko))
|
14
|
+
- Updated kops instructions [\#58](https://github.com/helios-technologies/kite/pull/58) ([vshatravenko](https://github.com/vshatravenko))
|
15
|
+
- Added no-ip + platform-internal tag for GCP instances [\#56](https://github.com/helios-technologies/kite/pull/56) ([vshatravenko](https://github.com/vshatravenko))
|
16
|
+
- Added instructions for kops cluster creation [\#55](https://github.com/helios-technologies/kite/pull/55) ([vshatravenko](https://github.com/vshatravenko))
|
17
|
+
- Added manifest credentials interpolation; updated docs [\#54](https://github.com/helios-technologies/kite/pull/54) ([vshatravenko](https://github.com/vshatravenko))
|
18
|
+
- Added functional tests [\#53](https://github.com/helios-technologies/kite/pull/53) ([vshatravenko](https://github.com/vshatravenko))
|
19
|
+
- Fixed docs and setup-tunnel mode [\#51](https://github.com/helios-technologies/kite/pull/51) ([vshatravenko](https://github.com/vshatravenko))
|
20
|
+
|
3
21
|
## [v0.0.9](https://github.com/helios-technologies/kite/tree/v0.0.9) (2017-09-29)
|
4
22
|
[Full Changelog](https://github.com/helios-technologies/kite/compare/v0.0.8...v0.0.9)
|
5
23
|
|
@@ -82,4 +100,3 @@
|
|
82
100
|
[Full Changelog](https://github.com/helios-technologies/kite/compare/v0.0.2...v0.0.3)
|
83
101
|
|
84
102
|
## [v0.0.2](https://github.com/helios-technologies/kite/tree/v0.0.2) (2017-08-24)
|
85
|
-
|
data/Dockerfile
CHANGED
@@ -1,16 +1,37 @@
|
|
1
1
|
FROM ruby:2.4.1
|
2
2
|
|
3
|
-
RUN apt-get update && apt-get install -y zip
|
3
|
+
RUN apt-get update && apt-get install -y zip curl wget
|
4
|
+
|
5
|
+
ARG TERRAFORM_VERSION=0.10.8
|
6
|
+
ARG BOSH_VERSION=2.0.44
|
7
|
+
ARG GCLOUD_VERSION=178.0.0
|
4
8
|
|
5
9
|
# Install Terraform
|
6
|
-
RUN curl https://releases.hashicorp.com/terraform/
|
7
|
-
|
10
|
+
RUN curl -Ls https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -o terraform.zip \
|
11
|
+
&& unzip terraform -d /usr/bin/terraform \
|
12
|
+
&& chmod +x /usr/bin/terraform \
|
13
|
+
&& rm -f terraform.zip
|
8
14
|
|
9
15
|
# Install BOSH v2
|
10
|
-
RUN curl https://s3.amazonaws.com/bosh-cli-artifacts/bosh-cli-
|
16
|
+
RUN curl -Ls https://s3.amazonaws.com/bosh-cli-artifacts/bosh-cli-${BOSH_VERSION}-linux-amd64 -o /usr/bin/bosh \
|
17
|
+
&& chmod +x /usr/bin/bosh
|
18
|
+
|
19
|
+
# Install gcloud
|
20
|
+
RUN set -ex \
|
21
|
+
&& cd /usr/local/ \
|
22
|
+
&& curl -LsO https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${GCLOUD_VERSION}-linux-x86_64.tar.gz \
|
23
|
+
&& tar xvf google-cloud-sdk-${GCLOUD_VERSION}-linux-x86_64.tar.gz \
|
24
|
+
&& ./google-cloud-sdk/install.sh -q --rc-path /etc/profile.d/gcloud.sh --additional-components kubectl docker-credential-gcr \
|
25
|
+
&& rm google-cloud-sdk-${GCLOUD_VERSION}-linux-x86_64.tar.gz
|
26
|
+
|
27
|
+
ENV PATH=/usr/local/google-cloud-sdk/bin:${PATH}
|
28
|
+
|
29
|
+
# Install helm
|
30
|
+
RUN curl -s https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
|
31
|
+
|
32
|
+
# Install Kite
|
33
|
+
RUN gem install kite
|
11
34
|
|
12
|
-
#
|
13
|
-
|
14
|
-
|
15
|
-
RUN bundle && rake build && gem install pkg/kite-*
|
16
|
-
RUN kite new test
|
35
|
+
# Add concourse entrypoints
|
36
|
+
ADD lib /opt/lib
|
37
|
+
ADD bin/concourse /opt/resource/
|
data/Makefile
CHANGED
@@ -1,12 +1,24 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
VERSION := $(shell git describe --tags --abbrev=0 2>/dev/null | tr -d 'v')
|
2
|
+
IMAGE := heliostech/kite:$(VERSION)
|
3
3
|
|
4
|
-
.PHONY: build
|
4
|
+
.PHONY: default build push run ci deploy
|
5
|
+
|
6
|
+
default: build run
|
5
7
|
|
6
8
|
build:
|
7
|
-
echo
|
8
|
-
docker build -t
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
@echo '> Building "kite" docker image...'
|
10
|
+
@docker build -t $(IMAGE) .
|
11
|
+
|
12
|
+
push: build
|
13
|
+
gcloud docker -- push $(IMAGE)
|
14
|
+
|
15
|
+
run:
|
16
|
+
@echo '> Starting "kite" container...'
|
17
|
+
@docker run -d $(IMAGE)
|
18
|
+
|
19
|
+
ci:
|
20
|
+
@fly -t ci set-pipeline -p kite -c config/pipelines/review.yml -n
|
21
|
+
@fly -t ci unpause-pipeline -p kite
|
22
|
+
|
23
|
+
deploy: push
|
24
|
+
@helm install ./config/charts/kite --set "image.tag=$(VERSION)"
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# Kite
|
2
2
|
|
3
|
+

|
3
4
|
[](https://travis-ci.org/helios-technologies/kite)
|
4
5
|
[](https://codecov.io/gh/helios-technologies/kite)
|
5
6
|
|
@@ -72,6 +73,14 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
72
73
|
|
73
74
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
74
75
|
|
76
|
+
### Concourse Resource
|
77
|
+
|
78
|
+
To use resource scripts locally, set env variable `is_devel` to `true`, e.h.:
|
79
|
+
|
80
|
+
```sh
|
81
|
+
$ ruby -Ilib ./bin/concourse/in
|
82
|
+
```
|
83
|
+
|
75
84
|
## Contributing
|
76
85
|
|
77
86
|
Bug reports and pull requests are welcome on GitHub at https://github.com/helios-technologies/kite.
|
data/bin/concourse/check
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
$: << (ENV['is_devel'] ? File.expand_path('../../../lib', __FILE__) : '/opt/lib')
|
4
|
+
|
5
|
+
require 'kite/helpers/concourse'
|
6
|
+
include Kite::Helpers::Concourse
|
7
|
+
|
8
|
+
# We'll use this variables later
|
9
|
+
# cwd = ARGV[0]
|
10
|
+
# params = Kite::Helpers::Concourse.params(STDIN.read)
|
11
|
+
|
12
|
+
Kite::Helpers::Concourse.respond(version: { status: 'ok' })
|
data/bin/concourse/in
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
$: << (ENV['is_devel'] ? File.expand_path('../../../lib', __FILE__) : '/opt/lib')
|
4
|
+
|
5
|
+
require 'kite/helpers/concourse'
|
6
|
+
include Kite::Helpers::Concourse
|
7
|
+
|
8
|
+
# We'll use this variables later
|
9
|
+
# cwd = ARGV[0]
|
10
|
+
# params = Kite::Helpers::Concourse.params(STDIN.read)
|
11
|
+
|
12
|
+
Kite::Helpers::Concourse.respond(version: { status: 'ok' })
|
data/bin/concourse/out
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$: << (ENV['is_devel'] ? File.expand_path('../../../lib', __FILE__) : '/opt/lib')
|
3
|
+
require 'kite/helpers/concourse'
|
4
|
+
|
5
|
+
Dir.chdir ARGV[0]
|
6
|
+
params = Kite::Helpers::Concourse.params(STDIN.read)
|
7
|
+
|
8
|
+
Kite::Helpers::Concourse.fatal '`source` missing' unless params['source']
|
9
|
+
|
10
|
+
key = params['source']['json_key']
|
11
|
+
kubeconfig = params['source']['kubeconfig']
|
12
|
+
command = params['params']['command']
|
13
|
+
|
14
|
+
Kite::Helpers::Concourse.fatal '`kubeconfig` missing' if kubeconfig.to_s.empty?
|
15
|
+
Kite::Helpers::Concourse.fatal '`command` missing' if command.to_s.empty?
|
16
|
+
|
17
|
+
path_key = '/tmp/key.json'
|
18
|
+
path_kubeconfig = '/tmp/kubeconfig'
|
19
|
+
|
20
|
+
File.write(path_key, key) if key
|
21
|
+
File.write(path_kubeconfig, kubeconfig)
|
22
|
+
|
23
|
+
env = {
|
24
|
+
'KUBECONFIG' => path_kubeconfig,
|
25
|
+
}
|
26
|
+
|
27
|
+
if key
|
28
|
+
env['GOOGLE_CREDENTIALS'] = path_key
|
29
|
+
unless Kite::Helpers::Concourse.execute("gcloud auth activate-service-account --key-file=#{ path_key }", env)
|
30
|
+
::Kite::Helpers::Concourse.respond(
|
31
|
+
version: { status: 'error' },
|
32
|
+
metadata: ["Failed to execute command #{ command }"]
|
33
|
+
)
|
34
|
+
exit 1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
if Kite::Helpers::Concourse.execute(command, env)
|
39
|
+
::Kite::Helpers::Concourse.respond(version: { status: 'ok' })
|
40
|
+
else
|
41
|
+
::Kite::Helpers::Concourse.respond(
|
42
|
+
version: { status: 'error' },
|
43
|
+
metadata: ["Failed to execute command #{ command }"]
|
44
|
+
)
|
45
|
+
exit 1
|
46
|
+
end
|
@@ -0,0 +1,158 @@
|
|
1
|
+
# Check `docs/pipeline.md` to get info about this file
|
2
|
+
resource_types:
|
3
|
+
- name: slack-notification
|
4
|
+
type: docker-image
|
5
|
+
source:
|
6
|
+
repository: cfcommunity/slack-notification-resource
|
7
|
+
tag: latest
|
8
|
+
|
9
|
+
- name: pull-request
|
10
|
+
type: docker-image
|
11
|
+
source:
|
12
|
+
repository: jtarchie/pr
|
13
|
+
|
14
|
+
resources:
|
15
|
+
- name: kite-repository
|
16
|
+
type: git
|
17
|
+
source:
|
18
|
+
uri: git@github.com:helios-technologies/kite
|
19
|
+
branch: master
|
20
|
+
private_key: ((git_private_key))
|
21
|
+
|
22
|
+
- name: pull-requests
|
23
|
+
type: pull-request
|
24
|
+
source:
|
25
|
+
access_token: ((github_token))
|
26
|
+
base: master
|
27
|
+
private_key: ((git_private_key))
|
28
|
+
repo: helios-technologies/kite
|
29
|
+
uri: git@github.com:helios-technologies/kite
|
30
|
+
|
31
|
+
- name: kite-image
|
32
|
+
type: docker-image
|
33
|
+
source:
|
34
|
+
repository: gcr.io/helios-devel/kitebox
|
35
|
+
username: _json_key
|
36
|
+
password: ((gcr_password))
|
37
|
+
|
38
|
+
- name: slack-alert
|
39
|
+
type: slack-notification
|
40
|
+
source:
|
41
|
+
url: https://hooks.slack.com/services/((slack_webhook))
|
42
|
+
|
43
|
+
jobs:
|
44
|
+
- name: pr-build
|
45
|
+
plan:
|
46
|
+
- get: pull-requests
|
47
|
+
trigger: true
|
48
|
+
- task: tag
|
49
|
+
file: pull-requests/config/pipelines/tasks/create-pull-requests-tag.yml
|
50
|
+
- put: kite-image
|
51
|
+
params:
|
52
|
+
build: pull-requests
|
53
|
+
tag: tag/name
|
54
|
+
|
55
|
+
- name: pr-unit
|
56
|
+
serial: true
|
57
|
+
plan:
|
58
|
+
- get: pull-requests
|
59
|
+
passed: [pr-build]
|
60
|
+
trigger: true
|
61
|
+
- get: kite-image
|
62
|
+
passed: [pr-build]
|
63
|
+
trigger: true
|
64
|
+
- put: pull-requests
|
65
|
+
params:
|
66
|
+
path: pull-requests
|
67
|
+
status: pending
|
68
|
+
- task: run-tests
|
69
|
+
file: pull-requests/config/pipelines/tasks/run-pr-tests.yml
|
70
|
+
on_success:
|
71
|
+
do:
|
72
|
+
- put: pull-requests
|
73
|
+
params:
|
74
|
+
path: pull-requests
|
75
|
+
status: success
|
76
|
+
- put: slack-alert
|
77
|
+
params:
|
78
|
+
channel: '#ci-alerts'
|
79
|
+
text: |
|
80
|
+
kite PR tests have passed! :thumbsup_all:
|
81
|
+
Check it out at:
|
82
|
+
$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
|
83
|
+
or at:
|
84
|
+
$ATC_EXTERNAL_URL/builds/$BUILD_ID
|
85
|
+
see on github:
|
86
|
+
`cat pull-requests/.git/url`
|
87
|
+
|
88
|
+
on_failure:
|
89
|
+
do:
|
90
|
+
- put: pull-requests
|
91
|
+
params:
|
92
|
+
path: pull-requests
|
93
|
+
status: failure
|
94
|
+
- put: slack-alert
|
95
|
+
params:
|
96
|
+
channel: '#ci-alerts'
|
97
|
+
text: |
|
98
|
+
kite PR tests have failed! :thumbsdown_all:
|
99
|
+
Check it out at:
|
100
|
+
$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
|
101
|
+
or at:
|
102
|
+
$ATC_EXTERNAL_URL/builds/$BUILD_ID
|
103
|
+
see on github:
|
104
|
+
`cat pull-requests/.git/url`
|
105
|
+
|
106
|
+
- name: master-build
|
107
|
+
serial: true
|
108
|
+
plan:
|
109
|
+
- get: kite-repository
|
110
|
+
trigger: true
|
111
|
+
- task: tag
|
112
|
+
file: kite-repository/config/pipelines/tasks/create-repository-tag.yml
|
113
|
+
- put: kite-image
|
114
|
+
params:
|
115
|
+
build: kite-repository
|
116
|
+
tag: tag/name
|
117
|
+
- put: slack-alert
|
118
|
+
params:
|
119
|
+
channel: '#ci-alerts'
|
120
|
+
text: |
|
121
|
+
kite master branch was built and pushed!
|
122
|
+
Check it out at:
|
123
|
+
$ATC_EXTERNAL_URL/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
|
124
|
+
or at:
|
125
|
+
$ATC_EXTERNAL_URL/builds/$BUILD_ID
|
126
|
+
|
127
|
+
- name: master-unit
|
128
|
+
serial: true
|
129
|
+
plan:
|
130
|
+
- get: kite-repository
|
131
|
+
passed: [master-build]
|
132
|
+
trigger: true
|
133
|
+
- get: kite-image
|
134
|
+
passed: [master-build]
|
135
|
+
trigger: true
|
136
|
+
- task: run-tests
|
137
|
+
file: kite-repository/config/pipelines/tasks/run-master-tests.yml
|
138
|
+
on_success:
|
139
|
+
put: slack-alert
|
140
|
+
params:
|
141
|
+
channel: '#ci-alerts'
|
142
|
+
text: |
|
143
|
+
kite master tests have passed! :thumbsup_all:
|
144
|
+
Check it out at:
|
145
|
+
$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
|
146
|
+
or at:
|
147
|
+
$ATC_EXTERNAL_URL/builds/$BUILD_ID
|
148
|
+
|
149
|
+
on_failure:
|
150
|
+
put: slack-alert
|
151
|
+
params:
|
152
|
+
channel: '#ci-alerts'
|
153
|
+
text: |
|
154
|
+
kite master tests have failed! :thumbsdown_all:
|
155
|
+
Check it out at:
|
156
|
+
$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
|
157
|
+
or at:
|
158
|
+
$ATC_EXTERNAL_URL/builds/$BUILD_ID
|
@@ -0,0 +1,13 @@
|
|
1
|
+
---
|
2
|
+
platform: linux
|
3
|
+
image_resource:
|
4
|
+
type: docker-image
|
5
|
+
source:
|
6
|
+
repository: alpine/git
|
7
|
+
run:
|
8
|
+
path: sh
|
9
|
+
args: ['-xc', 'cd pull-requests && git rev-parse --short=8 HEAD > ../tag/name']
|
10
|
+
inputs:
|
11
|
+
- name: pull-requests
|
12
|
+
outputs:
|
13
|
+
- name: tag
|
@@ -0,0 +1,13 @@
|
|
1
|
+
---
|
2
|
+
platform: linux
|
3
|
+
image_resource:
|
4
|
+
type: docker-image
|
5
|
+
source:
|
6
|
+
repository: alpine/git
|
7
|
+
run:
|
8
|
+
path: sh
|
9
|
+
args: ['-xc', 'cd kite-repository && git rev-parse --short=8 HEAD > ../tag/name']
|
10
|
+
inputs:
|
11
|
+
- name: kite-repository
|
12
|
+
outputs:
|
13
|
+
- name: tag
|