From d5e8f75619c25c39f8d6067c3628ff724529621a Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Fri, 3 May 2024 18:10:50 -0500 Subject: [PATCH] update --- .octopus/deployment_process.ocl | 34 -------------------------------- .octopus/deployment_settings.ocl | 7 ------- .octopus/schema_version.ocl | 1 - .octopus/variables.ocl | 0 .variables.yml | 1 - 5 files changed, 43 deletions(-) delete mode 100644 .octopus/deployment_process.ocl delete mode 100644 .octopus/deployment_settings.ocl delete mode 100644 .octopus/schema_version.ocl delete mode 100644 .octopus/variables.ocl diff --git a/.octopus/deployment_process.ocl b/.octopus/deployment_process.ocl deleted file mode 100644 index 3df9c0a..0000000 --- a/.octopus/deployment_process.ocl +++ /dev/null @@ -1,34 +0,0 @@ -step "update-chart" { - name = "Update Chart" - - action { - action_type = "Octopus.Script" - properties = { - Octopus.Action.EnabledFeatures = "Octopus.Features.SubstituteInFiles" - Octopus.Action.RunOnServer = "true" - Octopus.Action.Script.ScriptBody = <<-EOT - Install-Module -Name powershell-yaml -Confirm:$false -Force - - $template = (Invoke-RestMethod -Headers @{ 'PRIVATE-TOKEN' = ${GITLAB_TOKEN} } -Uri "https://gitlab.com/api/v4/projects/45028985/repository/files/durpapi%2FChart.yaml/raw?ref=main") | ConvertFrom-Yaml - $template.version = $OctopusParameters["Octopus.Release.Number"] - - $body = @{ - branch = "main" - commit_message = "Update Chart" - content = "$($template | convertto-yaml)" - } | ConvertTo-Json - - Invoke-RestMethod -Headers @{ 'PRIVATE-TOKEN' = ${GITLAB_TOKEN} } -ContentType "application/json" -Method Put -body $body -Uri "https://gitlab.com/api/v4/projects/45028985/repository/files/durpapi%2FChart.yaml" - - EOT - Octopus.Action.Script.ScriptSource = "Inline" - Octopus.Action.Script.Syntax = "PowerShell" - OctopusUseBundledTooling = "False" - } - - container { - feed = "nexus" - image = "powershell:latest" - } - } -} \ No newline at end of file diff --git a/.octopus/deployment_settings.ocl b/.octopus/deployment_settings.ocl deleted file mode 100644 index 2c0b118..0000000 --- a/.octopus/deployment_settings.ocl +++ /dev/null @@ -1,7 +0,0 @@ -connectivity_policy { - allow_deployments_to_no_targets = true -} - -versioning_strategy { - template = "#{Octopus.Version.LastMajor}.#{Octopus.Version.LastMinor}.#{Octopus.Version.NextPatch}" -} \ No newline at end of file diff --git a/.octopus/schema_version.ocl b/.octopus/schema_version.ocl deleted file mode 100644 index 4548a61..0000000 --- a/.octopus/schema_version.ocl +++ /dev/null @@ -1 +0,0 @@ -version = 6 \ No newline at end of file diff --git a/.octopus/variables.ocl b/.octopus/variables.ocl deleted file mode 100644 index e69de29..0000000 diff --git a/.variables.yml b/.variables.yml index 6bec45c..3038794 100644 --- a/.variables.yml +++ b/.variables.yml @@ -1,4 +1,3 @@ variables: GO_VERSION: '1.22' GOLANGCI_LINT_VERISON: "v1.54" - OCTO_PROJECT_NAME: "DurpAPI"