-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from okta/default-cci-template
Add default CCI templates
- Loading branch information
Showing
3 changed files
with
64 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Use the latest 2.1 version of CircleCI pipeline process engine. | ||
# See: https://circleci.com/docs/2.0/configuration-reference | ||
version: 2.1 | ||
|
||
orbs: | ||
general-platform-helpers: okta/[email protected] | ||
|
||
# Define a job to be invoked later in a workflow. | ||
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs | ||
jobs: | ||
cache-secrets: | ||
machine: true | ||
resource_class: okta/generic-linux-x86 | ||
environment: | ||
VAULT_ADDR: https://vault.aue1e.saasure.net | ||
steps: | ||
- checkout | ||
- run: | ||
name: "Vault login" | ||
command: | | ||
vault login -method=userpass username=$vault_username password=$vault_password > /dev/null 2>&1 | ||
- general-platform-helpers/save-dependencies | ||
|
||
load-secrets: | ||
docker: | ||
- image: cimg/openjdk:11.0 | ||
steps: | ||
- checkout | ||
- general-platform-helpers/load-dependencies | ||
|
||
test: | ||
docker: | ||
- image: cimg/go:1.19.4 | ||
steps: | ||
- checkout | ||
- run: go version | ||
- run: | ||
name: "test stage" | ||
command: make test | ||
|
||
# Invoke jobs via workflows | ||
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows | ||
workflows: | ||
"Circle CI Tests": | ||
jobs: | ||
- cache-secrets | ||
- load-secrets: | ||
requires: | ||
- cache-secrets | ||
- test: | ||
requires: | ||
- load-secrets | ||
|
||
# VS Code Extension Version: 1.4.0 |
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,9 @@ | ||
vault: | ||
- USERNAME: | ||
devex/okta-jwt-verifier-golang: USERNAME | ||
- PASSWORD: | ||
devex/okta-jwt-verifier-golang: PASSWORD | ||
- CLIENT_ID: | ||
devex/okta-jwt-verifier-golang: CLIENT_ID | ||
- ISSUER: | ||
devex/okta-jwt-verifier-golang: ISSUER |
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