-
Notifications
You must be signed in to change notification settings - Fork 1
/
codeship-steps.yml
53 lines (46 loc) · 1.42 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
47
48
49
50
51
52
53
- type: parallel
steps:
- name: test_deployer
service: deployer
command: rspec
- name: run code quality metrics tools
service: ruby-code-quality-metrics
command: ruby
- type: parallel
steps:
- name: push_deployer
service: deployer
type: push
image_name: quay.io/gapfish/deployer
image_tag: "{{ .Branch }}-{{ .CommitID }}"
registry: quay.io
- name: push_deployer_latest
service: deployer
type: push
image_name: quay.io/gapfish/deployer
tag: master
image_tag: latest
registry: quay.io
- name: push_depctl
service: depctl
type: push
image_name: quay.io/gapfish/depctl
image_tag: "{{ .Branch }}-{{ .CommitID }}"
registry: quay.io
- name: push_depctl_latest
service: depctl
type: push
image_name: quay.io/gapfish/depctl
tag: master
image_tag: latest
registry: quay.io
- type: parallel
steps:
- name: deploy deployer
service: curl
tag: master
command: "sh -c 'curl --fail --data commit=master\\&tag=$CI_BRANCH\\-$CI_COMMIT_ID https://$DEPLOYER_CREDS@deployer.k8s.gapfish.com/deployer/deploy'"
- name: deploy deployer staging
service: curl
tag: staging
command: "sh -c 'curl --fail --data commit=staging\\&tag=$CI_BRANCH\\-$CI_COMMIT_ID https://$DEPLOYER_CREDS_STAGING@deployer.k8s-staging.gapfish.com/deployer/deploy'"