Skip to content

Commit

Permalink
Initial commit of deployment process
Browse files Browse the repository at this point in the history
  • Loading branch information
MJRichardson authored and Octopus Deploy committed Nov 4, 2023
1 parent 67c42d9 commit fab66aa
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .octopus/deployment_process.ocl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
step "hello-world" {
name = "hello world"

action {
action_type = "Octopus.Script"
properties = {
Octopus.Action.RunOnServer = "true"
Octopus.Action.Script.ScriptBody = <<-EOT
image=$(get_octopusvariable "Octopus.Action.Package[shipped23].Image")

echo "deploying image: $image"
EOT
Octopus.Action.Script.ScriptSource = "Inline"
Octopus.Action.Script.Syntax = "Bash"
}
worker_pool = "hosted-ubuntu"

packages "shipped23" {
acquisition_location = "NotAcquired"
feed = "github-container-registry"
package_id = "mjrichardson/shipped23"
properties = {
Extract = "False"
Purpose = ""
SelectionMode = "immediate"
}
}
}
}
7 changes: 7 additions & 0 deletions .octopus/deployment_settings.ocl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
connectivity_policy {
allow_deployments_to_no_targets = true
}

versioning_strategy {
template = "#{Octopus.Version.LastMajor}.#{Octopus.Version.LastMinor}.#{Octopus.Version.NextPatch}"
}
1 change: 1 addition & 0 deletions .octopus/schema_version.ocl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version = 6
Empty file added .octopus/variables.ocl
Empty file.

0 comments on commit fab66aa

Please sign in to comment.