Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
publish sample config to github, publish as pre-release for manual qu…
Browse files Browse the repository at this point in the history
…ality control
  • Loading branch information
farshidtz committed Aug 22, 2019
1 parent a75beca commit 7e23642
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,31 @@ before_deploy:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

deploy:
# push latest docker image
- provider: script
script: docker push linksmart/sc:latest
on:
branch: master
# push tagged docker image
- provider: script
script: docker tag linksmart/sc linksmart/sc:${TRAVIS_TAG} &&
docker push linksmart/sc:${TRAVIS_TAG}
on:
tags: true
# cross-compile (uses global environment variables)
- provider: script
script: curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/go/go-build.sh | bash
on:
tags: true
# publish artifacts and sample config file
- provider: releases
api_key: $GITHUB_KEY
file_glob: true
file: bin/*
file:
- bin/*
- sample_conf/*
skip_cleanup: true
overwrite: true
prerelease: true # release manually after QC
on:
tags: true

0 comments on commit 7e23642

Please sign in to comment.