forked from DataReply/alertmanager-sns-forwarder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (40 loc) · 3.37 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
sudo: required
env:
global:
- secure: HBFYeB+BJUirImKI0zeqjlb87Ji8cUy0481sKA1Q4WWB0Eq9aNF+9s/YWHiC5MzVS3fbiZdIyHGhH4VU570osiQjwLig8230fFlVy9hiH+AZBgO8E8q/wdWlmZ9abfuxwN6LJGVNKgplRcenC++O2V/YlsIYZ2mqwNtlLzrb4ZwDp1+BLTIFUNh6mrTr6++5ih3vVPYFolHFsbaHO7pWZ72t0r7JXuyBGN1B64HCW9JWgyD2Bg7jruTETUrJ0gUmWDh054xetnP7kRx0KUtOwFcIcS9RgDvNAdgOeeokiSp4q7LaXn9h0YRL1X99Lkhn5LnfYcWuLjk0ZZhOcTtt7IipaFubH1IFEki462t1jzOabYo1EMnZcnHe1qP5YBqTZdlGIrW5sAbA798Wj4q5F7OPCb7JfGcXad3JIHWnTZJw/vJcuBWiwZSIlfhbw4rM7KNrqXdbtgaGEflDrpv1wHghjsTjzY9vb0Ssxl0TPPiobfk+wxL5dfJVtOP+h9dOJ2KSS9Cwbw+RXJL3Dx67CHF0ZURkpOIh3Y9bW0Z+PE41X14BQRiUbvR35L6e2MLB6bCoR4kCpWiE08zadfMEHH7r413d2EEKawJVWBvCHdYoLz9bI8smXITaE4JwIpegd5dByJMtVkM6LS1xnBSjYTjHrwcwOpDgKAjd+7+yDzo=
- secure: rRIR3pIrVPcAUYkOZB4d/h7dMM1UL+75xvkuG+yKsDBArnGcJgFnm/NYwUkBCmzaI85YRTz0y36TOskyx0AXYzL5LKByrOGcvxkURIvTHIynzV9Z9WNmzBRvohVNNr+vdaZH0/mASlDGIkrVXAV8vi212pR8fKLbVxRur20jxAJtHHhL/1qpTnQL27J7x0g0eAUAfb8AyGtSWjODq+gHHqL/tBXd3tsLditmrwC4h9PUtapC2XJagLMTvPPnrpCe2zr/5smeqUn6kBqiz3UQ6tXAo7DR4Wg5DaYvuOE+IsrHxeELSWOz7Jq7o+w4eN59cqV1nptvxSzu5KLTqLb1E/18p6gZ6FjVZeHeSOqG8AUhfow0nY5C5yreq4eH2wIRRDCGDZBJtTDBqStA18u5QYGcGgN0tVTTozNrB2SER2NK/MHZ4eJJo9s4oUftIaegFdAY/LPvkBccelhLhkdcjj1lUJSVDNHfOCwFP4Di2FPt2fvKYInakqFrUpTSkp7ILzuVN5dg81hErmdNKSB3FWREeLcx5GOEO6+5NTHFFgrQgJO20mRVou9kNu5VfAVw/cs+kmibsJHTD4JtctaN8dn/81zB1abrP3mMC003Hcy9eFkClwkXtVQEq/EtvFrMEAm6Bazjudmpvwx3jJNwEcR3IliE6b17X/EXibh0iAE=
- GO111MODULE=on
services:
- docker
language: go
go:
- 1.11.x
script:
- make all
- docker build -t datareply/alertmanager-sns-forwarder:latest .
before_deploy:
- mkdir releases
- tar -zcf releases/alertmanager-sns-forwarder-darwin_amd64.tar.gz bin/darwin/alertmanager-sns-forwarder
- tar -zcf releases/alertmanager-sns-forwarder-linux_amd64.tar.gz bin/linux/alertmanager-sns-forwarder
- tar -zcf releases/alertmanager-sns-forwarder-windows_amd64.tar.gz bin/windows/alertmanager-sns-forwarder
deploy:
provider: releases
api_key:
secure: gagL1oQM//dRiyO9J/N4cv4xKhmuUi/zsHAYRgefaGnzl6sWoqbEtirr6RoCmZldg2rBCEIuVMiY0YV9UiPUyWhcF+TjFgGJR6If+bSmQsjI3X74QQYklGmGDRsMk6VY7x05GJ/x+iPtUmi2bPsYNFSBG/xMqs7kHcXytZro6eOH+1/9GHUveYF0oZYN8dWESVRz2LluNmgv7ZPkdfGuYd3cMC+8FZOgQQW/xQ7idhHpkUHUfRtISmSal1v4D9INd9ll2CezW12qYpSUcqnbLFXl1maLfXyCnYq1nEVaFiVQYEcSlTseIOAUGSS0/5RjPBXzF+k8ocQ//GRoe23GSBJYBQjaC2t+kTf3syRKIckH2A7qYhjLfJzCAAGsZQGbZqT7p6WzkKyebKF80vWFeyw6BfXMkpkiDozvXBHu2HJEc/OAlypG6xlmRJ75TtgIHhNXUNgrIhbUtteWuLmTLkxbM4QGFHb7vZxvgudqyk9CIX7KTVpsNG4tl77xdVOCO6vuLQ+Wc9ezCjy5wqnPQtvzPDaeF5NhyGWJbNNO85Z9xuZ5nX2brv8KtUICvZiDDHvgcBPZ97w6IKmFT5SBD5AqWAmIH2BKRK2F/l7qmFaG0FPvh1JRHVEDVgOySaTDXy4QLKkG/G2SoP4RE/mHKs1ikyGS2RHGA13aVOWyUyc=
file:
- "releases/alertmanager-sns-forwarder-darwin_amd64.tar.gz"
- "releases/alertmanager-sns-forwarder-linux_amd64.tar.gz"
- "releases/alertmanager-sns-forwarder-windows_amd64.tar.gz"
skip_cleanup: true
on:
tags: true
repo: DataReply/alertmanager-sns-forwarder
branch: master
after_success:
- test $TRAVIS_TAG &&
docker tag datareply/alertmanager-sns-forwarder:latest datareply/alertmanager-sns-forwarder:$TRAVIS_TAG &&
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin &&
docker push datareply/alertmanager-sns-forwarder:$TRAVIS_TAG
- test $TRAVIS_BRANCH = "master" &&
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin &&
docker push datareply/alertmanager-sns-forwarder