- Golden path DEV-7: I want to onboard a new Workload
- Golden path DEV-8: I want to use define shared values and secrets
- Golden path DEV-9: I want to create new environments
- Golden path DEV-10: I want to deploy my Workload from my CI/CD pipeline
See Workload onboarding.
humctl create value DYNAMIC your-value --app ${APP}humctl create value DYNAMIC your-value-overriden --app ${APP} --env developmentGrab your available SecretStore's id in SECRET_STORE:
humctl api get /orgs/${HUMANITEC_ORG}/secretstoreshumctl create value TEST_SECRET test-secret --app ${APP} --is-secret-ref --secret-store ${SECRET_STORE}Open the Humanitec Portal to see these Shared Values&Secrets:
echo -e "https://app.humanitec.io/orgs/${HUMANITEC_ORG}/apps/${APP}/envs/development/values-and-secrets-overrides"score.yaml:
apiVersion: score.dev/v1b1
metadata:
name: my-sample-workload
containers:
my-sample-container:
image: .
variables:
STATIC_ENV_VAR: "Hello, static!"
DYNAMIC_ENV_VAR: "${resources.env.DYNAMIC}"
SECRET_ENV_VAR: "${resources.env.TEST_SECRET}"humctl score deploy -f score.yaml --image ${IMAGE} --app ${APP} --env development --waitEither create an empty Environment:
humctl create env cloned --type developmentOr cloned if from another Environment:
humctl create env cloned --type development --from developmentAnd then, either deploy a specific Workload in this cloned Environment:
humctl score deploy -f score.yaml --app ${APP} --env cloned --waitOr, deploy the entire Environment in its actual state:
humctl deploy env cloned cloned --app ${APP}Or, deploy an entire Environment to another:
humctl deploy env development cloned --app ${APP}In your Jenkins pipeline, GitHub Actions, GitLab Pipelines, you will:
- Install
humctl - Run
humctl score deployto deploy thescore.yamlfile - (Optional) Ephemeral Environment
Opportunity: at this stage, Developer insert that in their own pipeline definition, sooner rather later, Platform Engineers have an opportunity to author and centralize a pipeline definition template used by the Developers in their own pipelines.
flowchart LR
subgraph Humanitec
direction LR
subgraph Apps
subgraph Shared Values&Secrets
development
cloned
staging
production
end
development
cloned
staging
production
end
end