docker-hub-description-updater/.travis.yml

30 lines
737 B
YAML
Raw Normal View History

2019-09-16 19:36:27 +00:00
services:
- docker
stages:
- build
# - test
- deploy
2019-09-16 19:36:27 +00:00
jobs:
include:
- 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
# - name: "Test golang binaries inside a container image"
# stage: test
# script: make container-run/test
# after_script: bash <(curl -s https://codecov.io/bash)
- 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
- 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