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
8e13a5bd
Unverified
Commit
8e13a5bd
authored
Sep 08, 2017
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ci): move deploy instructions to build job
https://circleci.com/docs/2.0/configuration-reference/#deploy
parent
720c9bf5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
30 deletions
+22
-30
config.yml
.circleci/config.yml
+4
-25
deploy.sh
.circleci/deploy.sh
+18
-5
test.sh
.circleci/test.sh
+0
-0
No files found.
.circleci/config.yml
View file @
8e13a5bd
...
...
@@ -9,38 +9,17 @@ jobs:
PROJECT_NAME
:
"
kubernetes-helm"
steps
:
-
checkout
-
setup_remote_docker
-
run
:
name
:
install dependencies
command
:
make bootstrap
-
run
:
name
:
go env
command
:
go env
-
save_cache
:
key
:
vendor-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }}
paths
:
-
vendor
-
run
:
name
:
test
command
:
./scripts/ci.sh
deployment
:
working_directory
:
/go/src/k8s.io/helm
docker
:
-
image
:
golang:1.8
environment
:
PROJECT_NAME
:
"
kubernetes-helm"
filters
:
tags
:
only
:
/.*/
branches
:
only
:
master
steps
:
-
checkout
-
restore_cache
:
keys
:
-
vendor-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }}
-
run
:
name
:
go env
command
:
go env
command
:
.circleci/test.sh
-
deploy
:
name
:
deploy
command
:
./scripts/
ci/deploy.sh
name
:
deploy
command
:
.circle
ci/deploy.sh
scripts/
ci/deploy.sh
→
.circle
ci/deploy.sh
View file @
8e13a5bd
...
...
@@ -15,6 +15,11 @@
# limitations under the License.
set
-euo
pipefail
# Skip on pull request builds
if
[[
-n
"
${
CIRCLE_PR_NUMBER
:-}
"
]]
;
then
exit
fi
:
${
GCLOUD_SERVICE_KEY
:?
"GCLOUD_SERVICE_KEY environment variable is not set"
}
:
${
PROJECT_NAME
:?
"PROJECT_NAME environment variable is not set"
}
...
...
@@ -27,13 +32,21 @@ else
exit
1
fi
echo
"Updating gcloud components"
sudo
/opt/google-cloud-sdk/bin/gcloud
--quiet
components update
echo
"Install docker client"
VER
=
"17.03.0-ce"
curl
-L
-o
/tmp/docker-
$VER
.tgz https://get.docker.com/builds/Linux/x86_64/docker-
$VER
.tgz
tar
-xz
-C
/tmp
-f
/tmp/docker-
$VER
.tgz
mv
/tmp/docker/
*
/usr/bin
echo
"Install gcloud components"
export
CLOUDSDK_CORE_DISABLE_PROMPTS
=
1
curl https://sdk.cloud.google.com | bash
${
HOME
}
/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
}
"
${
HOME
}
/google-cloud-sdk/bin/gcloud auth activate-service-account
--key-file
"
${
HOME
}
/gcloud-service-key.json"
${
HOME
}
/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"
...
...
@@ -47,4 +60,4 @@ 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
}
"
${
HOME
}
/google-cloud-sdk/bin/gsutil
cp
./_dist/
*
"gs://
${
PROJECT_NAME
}
"
scripts/ci
.sh
→
.circleci/test
.sh
View file @
8e13a5bd
File moved
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