forked from Collaborne/kube-lego
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (38 loc) · 3.14 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
32
33
34
35
36
37
38
39
40
dist: trusty
sudo: false
group: beta
services:
- docker
language: go
go:
- 1.8
before_install:
- curl -Ls https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip > ngrok.zip
- unzip ngrok.zip
- rm ngrok.zip
- export PATH=$(pwd):$PATH
- export GO15VENDOREXPERIMENT=1
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then BASE_NAME=${TRAVIS_BRANCH}; else BASE_NAME=pr${TRAVIS_PULL_REQUEST}; fi
- NAME=`echo ${BASE_NAME} | tr -cd '[\-._[:alnum:]]'`
- TS=`date +%Y%m%dT%H%M%S`
- VERSION_TAG=${NAME}-${TS}-${TRAVIS_COMMIT}
- TAGS="${NAME} ${VERSION_TAG}"
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then TAGS="${TAGS} latest"; fi
- pip install --user awscli | cat
- eval `$HOME/.local/bin/aws ecr get-login --region eu-west-1`
install:
- make depend
script:
- make image "DOCKER_IMAGE=${DOCKER_NAME}" "BUILD_TAG=${BUILD_TAG}"
deploy:
provider: script
script: "${SHELL} ./travis-deploy.sh ${DOCKER_NAME}:${BUILD_TAG} ${TAGS}"
on:
all_branches: true
env:
global:
- DOCKER_NAME=499577160181.dkr.ecr.eu-west-1.amazonaws.com/jetstack/kube-lego
- BUILD_TAG=build
- secure: "iOTzTnakPci7lbcN3I4QYhhSd4M3UvH0lyYGwsgcBhNkbN6ltGDFWrTyP0VXakk8swdtmFit95c3TpNqKJ9+v6xVJemzEBSu73oA7wV/bkcEYd32b9nUmfwEvFwTnl/SqfPviVJmMVXJrTnOwdSLJNruGiTmGI5VWGXxevc4Qvtvv6QMz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