Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
0b9ed44d
Commit
0b9ed44d
authored
Sep 13, 2016
by
Adam Reese
Committed by
GitHub
Sep 13, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1178 from adamreese/feat/1177-canary-bins
feat(ci): build canary helm binaries using CI
parents
76ca8687
5f1bd67e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
Makefile
Makefile
+2
-2
circle.yml
circle.yml
+14
-1
No files found.
Makefile
View file @
0b9ed44d
...
...
@@ -21,13 +21,13 @@ all: build
build
:
GOBIN
=
$(BINDIR)
$(GO)
install
$(GOFLAGS)
-tags
'
$(TAGS)
'
-ldflags
'
$(LDFLAGS)
'
k8s.io/helm/cmd/...
# usage: make build-cross dist VERSION=v2.0.0-alpha.3
.PHONY
:
build-cross
build-cross
:
gox
-output
=
"_dist/{{.OS}}-{{.Arch}}/{{.Dir}}"
-os
=
"darwin linux windows"
-arch
=
"amd64 386"
$(GOFLAGS)
-tags
'
$(TAGS)
'
-ldflags
'
$(LDFLAGS)
'
k8s.io/helm/cmd/helm
# usage: make dist VERSION=v2.0.0-alpha.3
.PHONY
:
dist
dist
:
build-cross
dist
:
(
\
cd
_dist
&&
\
$(DIST_DIRS)
cp
../LICENSE
{}
\;
&&
\
...
...
circle.yml
View file @
0b9ed44d
...
...
@@ -6,12 +6,14 @@ machine:
GOVERSION
:
"
1.7"
GOPATH
:
"
${HOME}/.go_workspace"
WORKDIR
:
"
${GOPATH}/src/k8s.io/helm"
PROJECT_NAME
:
"
kubernetes-helm"
services
:
-
docker
dependencies
:
pre
:
# remove old go files
-
sudo rm -rf /usr/local/go
-
rm -rf "$GOPATH"
...
...
@@ -39,7 +41,18 @@ deployment:
gcr
:
branch
:
master
commands
:
-
echo $GCLOUD_SERVICE_KEY | base64 --decode > ${HOME}/gcloud-service-key.json
# setup gcloud tools
-
sudo /opt/google-cloud-sdk/bin/gcloud --quiet components update
-
echo "${GCLOUD_SERVICE_KEY}" | base64 --decode > "${HOME}/gcloud-service-key.json"
-
sudo /opt/google-cloud-sdk/bin/gcloud auth activate-service-account --key-file "${HOME}/glcoud-service-key.json"
-
sudo /opt/google-cloud-sdk/bin/gcloud config set project "${PROJECT_NAME}"
-
docker login -e 1234@5678.com -u _json_key -p "$(cat ${HOME}/gcloud-service-key.json)" https://gcr.io
# build canary tiller image and push
-
make docker-build
-
docker push gcr.io/kubernetes-helm/tiller:canary
# build canary helm binaries and push
-
make build-cross
-
make dist VERSION=canary
-
sudo /opt/google-cloud-sdk/bin/gsutil cp ./_dist/* "gs://${PROJECT_NAME}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment