Skip to content

Commit

Permalink
Create release on tag starting with v, include built services binary (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
a-roberts authored Apr 23, 2020
1 parent 1d62524 commit 2a2169b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
language: go
go: 1.13
go: 1.14
sudo: false
os:
- linux
- osx
# - windows (would be nice to have, ensure tests pass first before enabling!)

before_install:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.24.0

script:
- $GOPATH/bin/golangci-lint run
- go test ./...
- go build -o services_$TRAVIS_OS_NAME ./cmd/services

deploy:
provider: releases
api_key: $GH_TOKEN
file_glob: true
file: services*
skip_cleanup: true
on:
tags: true
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ At a high level the services command currently:
- pushes the cloned target
- creates a PR from the new branch in the target to master in the target

Important Notes:
## Important notes:

- 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.
- 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.
- 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.

## Release process

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 comments on commit 2a2169b

Please sign in to comment.