-
Notifications
You must be signed in to change notification settings - Fork 4
/
codeship-steps.yml
46 lines (44 loc) · 1.21 KB
/
codeship-steps.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
- name: Tests
type: parallel
encrypted_dockercfg_path: codeship-dockercfg.encrypted
steps:
# TODO: disable eslint until eslint-config-invision package is public
# - name: Run lint tests
# service: app
# command: lint
- name: Run unit tests
service: app
command: test-unit
- name: Run functional tests
service: app
command: test-functional
- name: Registry
type: serial
service: app
encrypted_dockercfg_path: codeship-dockercfg.encrypted
steps:
- name: Push version tag
type: push
tag: master
image_tag: "v2"
registry: quay.io
image_name: quay.io/invision/kit-deploymentizer
- name: Push branch and commit tag
type: serial
tag: ^(master|PRERELEASE-.*)$
steps:
- name: Push Branch Tag
type: push
registry: quay.io
image_tag: "{{ .Branch }}"
image_name: quay.io/invision/kit-deploymentizer
- name: Push branch-commit tag
type: push
registry: quay.io
image_tag: "{{ .Branch }}-{{ .CommitID }}"
image_name: quay.io/invision/kit-deploymentizer
- name: Publish
tag: ^(master|PRERELEASE-.*)$
service: publish
encrypted_dockercfg_path: codeship-dockercfg.encrypted
command: "true"