-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package only the binary for GitHub releases
- update bindata with gorelease hooks - add download instructions for Linux and MacOS - rename the CI steps
- Loading branch information
1 parent
97ea66e
commit 4ca12b7
Showing
3 changed files
with
22 additions
and
9 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 |
---|---|---|
@@ -1,39 +1,38 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
test: | ||
docker: | ||
# https://circleci.com/docs/2.0/building-docker-images/#docker-version | ||
- image: docker:17.11.0-ce | ||
steps: | ||
- checkout | ||
- setup_remote_docker: {docker_layer_caching: true} | ||
# just a simple build for now, but will use skaffold if it gets more complex | ||
# TODO(p3): run unit tests | ||
- run: docker build . | ||
deploy: | ||
build: | ||
docker: | ||
- image: circleci/golang:1.10 | ||
working_directory: /go/src/github.com/weaveworks/eksctl | ||
steps: | ||
- checkout | ||
- setup_remote_docker: {docker_layer_caching: true} | ||
- run: make install-bindata | ||
- run: make update-bindata | ||
- run: | ||
name: Build and publish | ||
# TODO(p3): build an image that has the script and all dependencies installed | ||
command: | | ||
if [[ -z "${CIRCLE_PULL_REQUEST}" ]] && [[ "${CIRCLE_TAG}" ]] && [[ "${CIRCLE_PROJECT_USERNAME}" = "weaveworks" ]] ; then | ||
curl -sL https://git.io/goreleaser | bash | ||
else | ||
echo "No deploy on PR" | ||
echo "Not a tag release, skip publish" | ||
fi | ||
workflows: | ||
version: 2 | ||
build-and-deploy: | ||
test-and-build: | ||
jobs: | ||
- build | ||
- deploy: | ||
- test | ||
- build: | ||
filters: | ||
tags: | ||
only: /^[0-9].*/ |
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
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