-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
53 lines (53 loc) · 6.67 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
41
42
43
44
45
46
47
48
49
50
51
52
53
language: go
go:
- '1.13'
sudo: required
dist: xenial
services:
- docker
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
env:
global:
- AWS_REGION=us-east-1
- AWS_DEFAULT_REGION=us-east-1
- TERRAFORM_VERSION=0.12.21
- KUBECTL_VERSION=1.19.0
- KUSTOMIZE_VERSION=3.6.1
- GOOGLE_APPLICATION_CREDENTIALS=.account.json
- secure: eQV5LiSp5XP7pL4gFYR98uL8aMdmeI5J5h3oOsRZ8fEBVFB0XBX0QDmK6zpaxAx2GoHfFC6ioUdNQjiVmnatwRHnnmxlplD8w99LXcvYkdfS6mtbyhdd2gZNv3gypIFqzyG73zqqhosNSUou1H8GSMWaQSk+P1Y6W7jHKsPEtrV5fepwu6tSpIK+DZbN2mrbyKdKMgWkdAPd/ni++bLDrvwlsoC8MOyWLerDnjRdC/Enzp4OgP9XR/JcqaNyXGLhMRLrN/PwWUk6mayjiVdGk9MLM+YuzCaVaqmtlHZMQHQQzP8r8KO4wZt+ApfNkVlwj44+ya7YoMkSguS5U4AmC0I3NntwhA4L8tpezk/FhSF0FwmP2MDKbWajYWtptThoXRQ5yU/UTJD/hWPofZPm9halZs7yqtoYNLXQWGfS06zROMyLoDOI7uw8b3VSSxQwVjcy8zjmJ/X5I/Dpl/QXsFGaU3u3u/Q0gE4V7ve/9fhbcittq1pRamcVvvZE/jUiXxWEiVEQ39W2dF/Fsp71nvm9Q7vTkgFKPtZV+lwFykTf9gg8vdbRTJ2qlYz668mQ0B+XUhueR+gxaDV+pIFKHRM+/B32fakTwBkXFHGtonodSL8TCeOydpmWLzJ4KexHAjL9AaUoqj4XKfQtAmtNppPmHpScONfhEZ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aKq89G/wRyF/Ycx0HUeGA+Qv/sI1r/BoY1dTzlD5NCJaASM4F8uSQceXbXiJYc8R3tNiBWVPU+eeCDo9QHsxgqvPGNipJH6q0wlFxYVm5en02waI3T8ZKvhEgd/Qd/XYSNU2pyJwuWol4wNCGkoVMTCSL/9CWTjVMplXL6F/+WJE6C01KRk9HIT4IlPj6eKuju/w9NFzsrYndjh+stfF7rH23Ca4kLGU=
before_install:
- openssl aes-256-cbc -K $encrypted_0de739900c81_key -iv $encrypted_0de739900c81_iv -in .account.json.enc -out .account.json -d
before_script:
- git fetch --unshallow || true
- git fetch --tags
- echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt
cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
- curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring
/usr/share/keyrings/cloud.google.gpg add -
- sudo apt-get update -y && sudo apt-get install -y google-cloud-sdk awscli jq
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl
&& chmod +x kubectl && sudo mv kubectl /usr/local/bin/
- curl -fsL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz | sudo tar -C /usr/local/bin/ -xvzf - && sudo chmod +x /usr/local/bin/kustomize
- curl -Os https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip
&& sudo unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin/
- (cd && GO111MODULE=on go get k8s.io/gengo/examples/deepcopy-gen)
script:
- set -e
- make
- "./scripts/run_tests.sh"
- make img login-img push-img DKR=docker
- "./scripts/init-cert/build.sh"
- "./scripts/run_eks_smoke_test.sh ./scripts/eks-smoke-test"
- K8S_VERSION=$KUBECTL_VERSION "./scripts/run_smoke_test.sh"
- "./scripts/update_latest_tags.sh"
notifications:
slack:
secure: d4Y/cOEzbFc7RHwizwVsdaTCURsQ/Rmm2kyGgw3WboO7ijU0PRNTioktRxB5byJAhCI79bDJbLxwNRempIdSlzG4sL7UHK4Nyxb0t5XxBLDzqD1nJPL652r5oQ8W+ru9tMKtO4xWc2ELl3spe4Lb1pyXHCSpvkd++IgZBKbpOdaCs4XNWm94sVXVRPiJOs+0tlX+gYjnGkje91MaVYJM/XMWNxOut2t6BZ1raYm+mYJUSfC7CFJPAha8+1x8S7CEbJE8Xa63gV37HUDsZbZfYdpljm3/nd6cdJzDYf51Cvdwh/DUqcBvw2AUm8AMlMUF7hGkSTS0gTRkO7nkURkm6eGJesHp0aEGg24TFIFaCtcI4rPq49GDPKOmAJUHtWev1oPw2SCIXw4cDkulKoYzqj+amXSfXDVN3Uza3zVGY445Wd5VLkiEoCvvE06Hp4gjnDfvszTh9Kj/CK7x8e4BtPyuq0oxn64/SyoSb9CfZL0VqNar4hlms44CYMdnLGzf6Sicc7+Og1aC3cd5/GlVRTtNsaf6qHVtQbhW9lar2fjpO2B2KxiOLmAvwp6aSN+Zmwif/xGfwqAJnQllB3d/ewiTjK34RJiKDg6BSUecC2Dp8jSzv9qpXYWvjSHM2kgltXgs21q7Pm7L6ISdhn6ek23ASe0N85qyyrNglF79mWA=