forked from redhat-cop/namespace-configuration-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (29 loc) · 1.06 KB
/
.travis.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
sudo: required
language: go
go_import_path: github.com/redhat-cop/namespace-configuration-operator
go:
- "1.13"
env:
- GO111MODULE=on
before_install:
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then openssl aes-256-cbc -K $encrypted_235562493430_key -iv $encrypted_235562493430_iv -in github_deploy_key.enc -out github_deploy_key -d; fi
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then chmod 600 github_deploy_key; fi
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then eval $(ssh-agent -s); fi
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then ssh-add github_deploy_key; fi
- curl -LO https://git.io/get_helm.sh && chmod 700 get_helm.sh && ./get_helm.sh
- travis_retry go mod download
deploy:
- provider: script
skip_cleanup: true
script: make travis-latest-deploy
on:
repo: redhat-cop/namespace-configuration-operator
branch: master
tags: false
- provider: script
skip_cleanup: true
script: make travis-release-deploy
on:
repo: redhat-cop/namespace-configuration-operator
branch: master
tags: true