Skip to content

Commit 2a2169b

Browse files
authored
Create release on tag starting with v, include built services binary (#61)
1 parent 1d62524 commit 2a2169b

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.travis.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
language: go
2-
go: 1.13
2+
go: 1.14
33
sudo: false
4+
os:
5+
- linux
6+
- osx
7+
# - windows (would be nice to have, ensure tests pass first before enabling!)
48

59
before_install:
610
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.24.0
7-
11+
812
script:
913
- $GOPATH/bin/golangci-lint run
1014
- go test ./...
15+
- go build -o services_$TRAVIS_OS_NAME ./cmd/services
16+
17+
deploy:
18+
provider: releases
19+
api_key: $GH_TOKEN
20+
file_glob: true
21+
file: services*
22+
skip_cleanup: true
23+
on:
24+
tags: true

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,12 @@ At a high level the services command currently:
6969
- pushes the cloned target
7070
- creates a PR from the new branch in the target to master in the target
7171

72-
Important Notes:
72+
## Important notes:
7373

7474
- We need to remove the local cache between requests. See https://github.com/rhd-gitops-example/services/issues/20. Until then, add `rm -rf ~/.promotion/cache; ` before subsequent requests.
7575
- New pull requests need new branches (i.e you cannot run the same command twice). Add `--branch [unique branch name]` before submitting further promotion PRs. See https://github.com/rhd-gitops-example/services/issues/21.
7676
- See https://github.com/rhd-gitops-example/services/issues/19 for an issue related to problems 'promoting' config from a source repo into a gitops repo.
77+
78+
## Release process
79+
80+
When a new tag is pushed with the `v` prefix, a GitHub release will be created with binaries produced for 64-bit Linux, and Mac automatically.

0 commit comments

Comments
 (0)