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
7f4fd4ef
Commit
7f4fd4ef
authored
Nov 04, 2016
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ref(ci): cleanup ci deploy
parent
0afeaea9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
31 deletions
+55
-31
circle.yml
circle.yml
+2
-31
deploy.sh
scripts/ci/deploy.sh
+53
-0
No files found.
circle.yml
View file @
7f4fd4ef
...
...
@@ -44,38 +44,9 @@ deployment:
release
:
tag
:
/.*/
commands
:
# 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}/gcloud-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 VERSION="${CIRCLE_TAG}"
-
docker push "gcr.io/kubernetes-helm/tiller:${CIRCLE_TAG}"
-
docker push gcr.io/kubernetes-helm/tiller:canary
# build canary helm binaries and push
-
make build-cross
-
make dist checksum VERSION="${CIRCLE_TAG}"
-
sudo /opt/google-cloud-sdk/bin/gsutil cp ./_dist/* "gs://${PROJECT_NAME}"
-
cd "${WORKDIR}" && ./scripts/ci/deploy.sh
canary
:
branch
:
master
commands
:
# 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}/gcloud-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 checksum VERSION=canary
-
sudo /opt/google-cloud-sdk/bin/gsutil cp ./_dist/* "gs://${PROJECT_NAME}"
-
cd "${WORKDIR}" && ./scripts/ci/deploy.sh
scripts/ci/deploy.sh
0 → 100755
View file @
7f4fd4ef
#!/usr/bin/env bash
# Copyright 2016 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set
-euo
pipefail
:
${
GCLOUD_SERVICE_KEY
:?
"GCLOUD_SERVICE_KEY environment variable is not set"
}
:
${
PROJECT_NAME
:?
"PROJECT_NAME environment variable is not set"
}
VERSION
=
if
[[
-n
"
${
CIRCLE_TAG
:-}
"
]]
;
then
VERSION
=
"
${
CIRCLE_TAG
}
"
elif
[[
"
${
CIRCLE_BRANCH
:-}
"
==
"master"
]]
;
then
VERSION
=
"canary"
else
exit
1
fi
echo
"Updating gcloud components"
sudo
/opt/google-cloud-sdk/bin/gcloud
--quiet
components update
echo
"Configuring gcloud authentication"
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
}
/gcloud-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
echo
"Building the tiller image"
make docker-build
VERSION
=
"
${
VERSION
}
"
echo
"Pushing image to gcr.io"
if
[[
"
${
VERSION
}
"
!=
"canary"
]]
;
then
docker push
"gcr.io/kubernetes-helm/tiller:
${
VERSION
}
"
fi
docker push gcr.io/kubernetes-helm/tiller:canary
echo
"Building helm binaries"
make build-cross
make dist checksum
VERSION
=
"
${
VERSION
}
"
echo
"Pushing binaries to gs bucket"
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