Skip to content

Commit

Permalink
update deployment process
Browse files Browse the repository at this point in the history
  • Loading branch information
veochen-octopus committed Jan 9, 2024
1 parent 3374b2a commit 8c1d677
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 12 deletions.
29 changes: 24 additions & 5 deletions .octopus/ubuntu.18.04/deployment_process.ocl
Original file line number Diff line number Diff line change
@@ -1,21 +1,40 @@
step "Push Docker image" {
step "push-docker-image" {
name = "Push Docker image"

action {
environments = ["Staging", "Production"]
environments = ["staging", "production"]
properties = {
DockerPush.Target.Docker.Registry.Hostname = "#{Docker.Registry.Target.Hostname}"
DockerPush.Target.Docker.Registry.Password = "#{Docker.Registry.Target.Password}"
DockerPush.Target.Docker.Registry.Username = "#{Docker.Registry.Target.Username}"
DockerPush.Target.Docker.Repository = "#{Docker.Registry.Target.Repository}"
Octopus.Action.RunOnServer = "true"
Octopus.Action.Template.Id = "ActionTemplates-2141"
Octopus.Action.Template.Version = "7"
Octopus.Action.Template.Version = "10"
}
worker_pool = "Hosted Ubuntu"
worker_pool = "hosted-ubuntu"

container {
feed = "docker.packages.octopushq"
feed = "docker-packages-octopushq"
image = "octopusdeploy/tool-containers/tool-skopeo-cli"
}
}
}

step "create-docker-manifest" {
name = "Create Docker Manifest"

action {
environments = ["staging", "production"]
properties = {
DockerPush.Target.Docker.Registry.Hostname = "#{Docker.Registry.Target.Repository}"
DockerPush.Target.Docker.Registry.Password = "#{Docker.Registry.Target.Username}"
DockerPush.Target.Docker.Registry.Username = "#{Docker.Registry.Target.Hostname}"
DockerPush.Target.Docker.Repository = "#{Docker.Registry.Target.Password}"
Octopus.Action.RunOnServer = "true"
Octopus.Action.Template.Id = "ActionTemplates-2741"
Octopus.Action.Template.Version = "3"
}
worker_pool = "hosted-ubuntu"
}
}
2 changes: 1 addition & 1 deletion .octopus/ubuntu.18.04/schema_version.ocl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = 3
version = 6
29 changes: 24 additions & 5 deletions .octopus/windows.ltsc2019/deployment_process.ocl
Original file line number Diff line number Diff line change
@@ -1,21 +1,40 @@
step "Push Docker image" {
step "push-docker-image" {
name = "Push Docker image"

action {
environments = ["Staging", "Production"]
environments = ["staging", "production"]
properties = {
DockerPush.Target.Docker.Registry.Hostname = "#{Docker.Registry.Target.Hostname}"
DockerPush.Target.Docker.Registry.Password = "#{Docker.Registry.Target.Password}"
DockerPush.Target.Docker.Registry.Username = "#{Docker.Registry.Target.Username}"
DockerPush.Target.Docker.Repository = "#{Docker.Registry.Target.Repository}"
Octopus.Action.RunOnServer = "true"
Octopus.Action.Template.Id = "ActionTemplates-2141"
Octopus.Action.Template.Version = "7"
Octopus.Action.Template.Version = "10"
}
worker_pool = "Hosted Ubuntu"
worker_pool = "hosted-ubuntu"

container {
feed = "docker.packages.octopushq"
feed = "docker-packages-octopushq"
image = "octopusdeploy/tool-containers/tool-skopeo-cli"
}
}
}

step "create-docker-manifest" {
name = "Create Docker Manifest"

action {
environments = ["staging", "production"]
properties = {
DockerPush.Target.Docker.Registry.Hostname = "#{Docker.Registry.Target.Repository}"
DockerPush.Target.Docker.Registry.Password = "#{Docker.Registry.Target.Username}"
DockerPush.Target.Docker.Registry.Username = "#{Docker.Registry.Target.Hostname}"
DockerPush.Target.Docker.Repository = "#{Docker.Registry.Target.Password}"
Octopus.Action.RunOnServer = "true"
Octopus.Action.Template.Id = "ActionTemplates-2741"
Octopus.Action.Template.Version = "3"
}
worker_pool = "hosted-ubuntu"
}
}
2 changes: 1 addition & 1 deletion .octopus/windows.ltsc2019/schema_version.ocl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = 3
version = 6

0 comments on commit 8c1d677

Please sign in to comment.