-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
27 lines (27 loc) · 2.68 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
language: go
go:
- "1.14"
install: true
sudo: required
script:
- make
services:
- docker
after_success:
- echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
- export REPO=ottoyiu/k8s-ec2-srcdst
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH;
else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- export TAG=`if [ "$BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH;
fi`
- docker build -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO
- make push_image
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
- secure: or4vHnrTLAF36IVgzk9iHL43GQT6QkU+98FBpeArgIuxFpo0438WkaIE244553DCp5xf2YwjSyNA1+3u74eiywSgcYpikbnwWlDCpKjtJVIxmY18xdIqHDeisEGyV2GVfI7y5HwJCAfs8vbw7+uZ+2siyWSZ4r5VUGiGMyuAAcDvXBnGvbuPeuWShUmocMnuFQ9VTTJe/41mUAIRZ6bQH7BkWWZfCJibHHH8CiMFWWdcwBFqHpTiqfzfCayZAHqukh6+w+YfBGkIefgPB68KP5JXBVQVXvXKEDx6DGBbZ8CWLHOhGKvTD6w4rR0aYso9UXtmQoMhUSnJ5oDmtdoQmhPNskLKVLfCq8BaycfuCLn7izYkVn0ma3sa2zt4vQ57gxMA/fQPmMuaVpiasJQQwUXvv3tO6FwlQzZ9T5NqG1Ds067uFzgSg5+TrKQ//aFiO2aY7J+0QlJMp2BZrTFirmsNYpWVTYVss0U0OB0giibBK38F/B6VtUkVS0QwoE3ZUqPawpAbCQLjR/TUBO+9w9S6bDI739X/lDdnJQJ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