-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
13 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
description: | | ||
Demonstrate authenticating to gcp with this orb. | ||
usage: | ||
version: 2.1 | ||
|
||
orbs: | ||
helm: entur/helm@volatile # Use volatile if you always want the newest version. | ||
|
||
|
||
jobs: | ||
deploy-application: | ||
docker: | ||
- image: entur/cci-toolbox:2.0 # This executor comes with a lof of pre-installed features; including gcloud. | ||
|
||
|
||
steps: | ||
- helm/authenticate-gcp: | ||
gcp-service-key: "{'json':'here'}" # If not provided, the command will look for the environment variable GCLOUD_SERVICE_KEY | ||
gcp-container-cluster: "mycluster" # If not provided, the command will look for the environment variable CLOUDSDK_CONTAINER_CLUSTER | ||
|
||
# Note: It is recommended not to have the gcp-service-key and gcp-container-cluster in plain text here. | ||
# Add the required keys as environment variables either in the CircleCI context (and include it via the workflow) or directly to the project. | ||
|
||
workflows: | ||
version: 2.1 | ||
|
||
my-workflow: | ||
jobs: | ||
- deploy-application: | ||
name: deploy-to-kubernetes | ||
context: a-context-that-contain-gcp-env-varialbes # You can add the gcp-service-key & gcp-container-cluster in the context. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
description: | | ||
Demonstrate installing the helm client with this orb. | ||
usage: | ||
version: 2.1 | ||
|
||
orbs: | ||
helm: entur/helm@volatile # Use volatile if you always want the newest version. | ||
|
||
|
||
jobs: | ||
deploy-application: | ||
docker: | ||
- image: circleci/image:version # Use an executor that supports curl. All official circleci images curl pre-installed (with a few exceptions) | ||
|
||
steps: | ||
- helm/install-helm-client # This command doesn't have any parameters. | ||
|
||
workflows: | ||
version: 2.1 | ||
|
||
my-workflow: | ||
jobs: | ||
- deploy-application |