b5cadfe3de
If we tag a release for, e.g. 0.1.1, after we've already cut a 0.2.0 tag, then CI would tag the 0.1.1 image as `latest`, which is confusing. This commit ensures that we only tag the `latest` image when building from master. Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
32 lines
522 B
YAML
32 lines
522 B
YAML
sudo: required
|
|
|
|
dist: xenial
|
|
|
|
language: go
|
|
|
|
services:
|
|
- docker
|
|
|
|
go:
|
|
- 1.14.2
|
|
|
|
env:
|
|
- GO111MODULE=on DOCKER_CLI_EXPERIMENTAL=enabled
|
|
|
|
before_install:
|
|
- sudo apt-get update && sudo apt-get -y install jq
|
|
|
|
install: true
|
|
|
|
script:
|
|
- make
|
|
- make clean
|
|
- make unit
|
|
- make lint
|
|
- make container
|
|
|
|
after_success:
|
|
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
|
|
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
|
- make manifest && [ -z "$TRAVIS_TAG" ] && make manifest-latest
|