-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
50 lines (50 loc) · 1.79 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
language: go
go:
- '1.14'
services:
- docker
before_install:
- make test
jobs:
include:
- stage: make-build
script:
- make build
- stage: docker-latest
script:
- docker build -t cmattoon/aws-ssm:dev .
- docker tag cmattoon/aws-ssm:dev cmattoon/aws-ssm:latest
- make login
- docker push cmattoon/aws-ssm:dev
- docker push cmattoon/aws-ssm:latest
- stage: docker-branch
script:
- docker build -t cmattoon/aws-ssm:$TRAVIS_BRANCH .
- make login
- docker push cmattoon/aws-ssm:$TRAVIS_BRANCH
- stage: docker-pr
script:
- docker build -t cmattoon/aws-ssm:PR-$TRAVIS_PULL_REQUEST .
- make login
- docker push cmattoon/aws-ssm:PR-$TRAVIS_PULL_REQUEST
branches:
only:
- master
- "/^v.*$/"
stages:
- name: make-build
- name: docker-latest
if: branch = master AND type != pull_request
- name: docker-branch
if: branch != master AND type != pull_request
- name: docker-pr
if: type == pull_request
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: releases
api_key:
secure: LOwlKUR14QSuaf1g4m3NvIzIT8GxOPCosIDoUg8uCptp+sIIzalVnaLz7ulw+yyMzxvtPz5X7HezZ3vN84qWWdFezkc7pdgCHw2n9e6dLyWNTSLKi5MOrCcXEfhhd3odepvtQeFu+2vV5iJ/OTwdCdceV37gCreDLCm8V4bpBp8glSHafBaPNvJDPz4GnbC7a8Bj+IuyQe1heiFhbOe6kCqElfq/BJVxcRGB3qukyXQwUcj0Um+qMaMqRVMj973ZcahtzpWXNTu9jfE3mZKeeWfDd9sFJ8uCPPPJp9EwhIEeiG1TsCOR2vGpjeamQbI0f0f4n8dxFRDG+YtRwopSYJgGUnUEPxI+3V6lSN3f+dtMIwa1lbupbC1IW8U3s21NyEcEqBwXWYm+72G5X20RrKjKEUfKv9bzZbK61qztLx+D5i0vCv9oeIA1MF/tIybrHgCrw5VR4/SlxYZHYdFfNK/coZp/E6hICosMmuURmvPVAQ9h8IZVJWzOiXnUUszLPYwSmc+vih5JVJxqvHyu6H0cnCuiRPCeGCBD8Re95lCKYrB2vcw+mUZjcF9UYYh2Vf9BnduJE83M/O8pp6bc6CgadDXcDQ51vQzSl53cH8q+xPQN29JrKaNaOQ3F9zrWA70FGnyjecmgm+k5j9V/63jhUuRgoLFq9k/+b9GzYqo=
file: build/aws-ssm
on:
tags: true