forked from hashicorp/consul
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I6f6913b3f07ede35c40bb92294ee506b0dd9dc4c
- Loading branch information
1 parent
0ae099e
commit c838e42
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
language: go | ||
|
||
go: | ||
- "1.12.1" | ||
|
||
script: | ||
- find . -type f -name "*go" | xargs sed 's|github.com/hashicorp/consul|github.com/criteo-forks/consul|' -i | ||
- export VERSION=$(echo $TRAVIS_TAG | sed 's/^v//' ) | ||
- export PRERELEASE=$(echo $VERSION | cut -d '-' -f 2) | ||
- sed -i "s/VersionPrerelease = \".*\"/VersionPrerelease = \"$PRERELEASE\"/" version/version.go | ||
- make -j 3 multiarch | ||
|
||
sudo: false | ||
|
||
before_deploy: | ||
- echo "Deploying $VERSION(-$PRERELEASE) to GitHub releases" | ||
- for d in $(find ./pkg/bin -maxdepth 1 -mindepth 1 -type d | cut -d '/' -f4); do zip -j consul_${VERSION}_${d}.zip ./pkg/bin/${d}/consul* ; done | ||
|
||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: D3SCrX3k1UkNnJPi6tjYgoRmVLrDwXq/hvvRh4VD+H8HnYeheJxokhLbvL3IjHFaE/ruoNFeCyIWLGoNVnPtooeUV5+k4m8Raj3utPNV8esLXRVc0vRwpTYPmCbdjXyNuiHtrFI231caQfUv4vKmCWCy8OWu+fO4BUrjcO86HIEIzcG2ovSCRhLmjmAqDuZl077oYZ7xSkScW9yDtU09fCZxsQdxevkxG8pQ0mifPvbXrb9+Vz86VD/3c6S0KeLRaw+OppTreRZcVFQVZJQFyvu9kVWK2MwKlSNXcOKBb62c1HsZluveotnghCAJ/2R/7ndrKCip2iYwTEeNlvsm4apVPJgjndvpw5Av4jgtb5xaY/MyTcS3fKRmlVg6C7Laroq+VOkQXhnDA6I7B7gQWPXG7TChpd8M40Ua7X53JA9SxMxJeVISm9KY/dxQeaffubjE2PzDG0FREZvqrmIEdeXsy8uqdz1T/Ftnu7k4i6rYhadaqSDSyQ7T7yPkdg9wsP0GDPlBeejp/P2kgqcBki6QvM7k/9FaJre29/FhGuiTdCiC927mCLTZUnL2J1QoVL0C7ctDIrMGhwXcZwVEEtuyim4EznNvj9Ds7WgbjdJHWWfHeJ+UHT+ZMY4mciK8MrDWPzKTzPCj+keJg8yiCPMkWJcScZVCj4WBWZd0Z/E= | ||
file_glob: true | ||
file: consul_*.zip | ||
skip_cleanup: true | ||
on: | ||
repo: criteo-forks/consul | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters