2019-09-16 19:36:27 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2019-09-24 19:54:13 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
# - test
|
|
|
|
- deploy
|
|
|
|
|
2019-09-16 19:36:27 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
2019-09-24 19:54:13 +00:00
|
|
|
- name: "Compile golang binaries inside a container image"
|
2019-09-24 12:57:52 +00:00
|
|
|
stage: build
|
2019-09-16 19:36:27 +00:00
|
|
|
script: make container-run/all
|
2019-09-24 19:54:13 +00:00
|
|
|
# - name: "Test golang binaries inside a container image"
|
|
|
|
# stage: test
|
|
|
|
# script: make container-run/test
|
2020-01-26 14:29:11 +00:00
|
|
|
# after_script: bash <(curl -s https://codecov.io/bash)
|
2019-09-24 19:54:13 +00:00
|
|
|
- name: "Deploy container-image tagged as latest"
|
2019-09-24 12:57:52 +00:00
|
|
|
stage: deploy
|
2019-09-16 19:36:27 +00:00
|
|
|
script: make container-image/push
|
2020-01-26 14:29:11 +00:00
|
|
|
- name: "Deploy container-image tagged with a git tag"
|
|
|
|
stage: deploy
|
|
|
|
script: make container-image/push VERSION=${TRAVIS_TAG} CONTAINER_IMAGE_VERSION=${TRAVIS_TAG}
|
|
|
|
on:
|
|
|
|
tags: true
|
2019-09-16 19:36:27 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: change
|