-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
31 lines (31 loc) · 1011 Bytes
/
.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
sudo: required
language: bash
services:
- docker
stages:
- test
- release
- publish
jobs:
include:
- stage: test
script:
- 'printf -- "DOCKERUSER=${DH_NAMESPACE}\nDOCKERIMAGE=${DH_IMAGE}\nDOCKERREGISTRY=${DH_REGISTRY}\n" > ./Makefile.properties'
- make test
- stage: release
if: branch = master
script:
- 'printf -- "DOCKERUSER=${DH_NAMESPACE}\nDOCKERIMAGE=${DH_IMAGE}\nDOCKERREGISTRY=${DH_REGISTRY}\n" > ./Makefile.properties'
- git clone -b ${GH_BRANCH} https://${GH_USER}:${GH_TOKEN}@github.com/${GH_REPO}.git tagger
- cd tagger
- ./iterate patch
- git commit --allow-empty -m '[skip ci] publishing $(./get-latest)'
- git push origin ${GH_BRANCH} --tags
- stage: publish
if: branch = master
script:
- 'printf -- "DOCKERUSER=${DH_NAMESPACE}\nDOCKERIMAGE=${DH_IMAGE}\nDOCKERREGISTRY=${DH_REGISTRY}\n" > ./Makefile.properties'
- ./get-latest
- docker login -u ${DH_USERNAME} -p ${DH_PASSWORD}
- make publish
- docker logout