Skip to content

Commit 9a8fd62

Browse files
adminOctopus Deploy
authored andcommitted
Update deployment process
1 parent 0c52736 commit 9a8fd62

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.octopus/deployment_process.ocl

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
step "deploy-kubernetes-yaml" {
2+
name = "Deploy Kubernetes YAML"
3+
properties = {
4+
Octopus.Action.TargetRoles = "k8s-demo"
5+
}
6+
7+
action {
8+
action_type = "Octopus.KubernetesDeployRawYaml"
9+
properties = {
10+
Octopus.Action.GitRepository.FilePathFilters = "demo-frontend/demo-frontend.yaml"
11+
Octopus.Action.GitRepository.Source = "Project"
12+
Octopus.Action.Kubernetes.DeploymentTimeout = "180"
13+
Octopus.Action.Kubernetes.ResourceStatusCheck = "True"
14+
Octopus.Action.Kubernetes.ServerSideApply.Enabled = "True"
15+
Octopus.Action.Kubernetes.ServerSideApply.ForceConflicts = "True"
16+
Octopus.Action.KubernetesContainers.CustomResourceYamlFileName = "demo-frontend/demo-frontend.yaml"
17+
Octopus.Action.KubernetesContainers.Namespace = "zerotohero-#[Octopus.Environment.Name}"
18+
Octopus.Action.Package.JsonConfigurationVariablesTargets = "**/*.{yml,yaml}"
19+
Octopus.Action.Script.ScriptSource = "GitRepository"
20+
}
21+
22+
packages "octopus-zero-to-hero_demo-frontend" {
23+
acquisition_location = "NotAcquired"
24+
feed = "github-containers"
25+
package_id = "octopussolutionsengineering/octopus-zero-to-hero/demo-frontend"
26+
properties = {
27+
Extract = "False"
28+
Purpose = "DockerImageReference"
29+
SelectionMode = "immediate"
30+
}
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)