Skip to content

Commit 573a663

Browse files
Add deployment config for mlab-oti
1 parent be8bf43 commit 573a663

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.travis.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,21 @@ deploy:
6767

6868
#########################################
6969
## Production
70-
# TODO: add deploy on tags.
70+
# TODO: enforce a format on the $TRAVIS_TAG name.
71+
- provider: script
72+
script: $TRAVIS_BUILD_DIR/kubectl.sh mlab-oti prometheus-federation ./apply-global-prometheus.sh
73+
skip_cleanup: true
74+
on:
75+
repo: m-lab/prometheus-support
76+
tags: true
77+
78+
- provider: script
79+
script: $TRAVIS_BUILD_DIR/kubectl.sh mlab-oti scraper-cluster ./apply-cluster.sh
80+
skip_cleanup: true
81+
on:
82+
repo: m-lab/prometheus-support
83+
tags: true
84+
7185

7286
before_install:
7387
- travis/decrypt.sh "$encrypted_1c8dd3704323_key" "$encrypted_1c8dd3704323_iv"

0 commit comments

Comments
 (0)