1
0
This commit is contained in:
2026-01-27 09:53:41 +01:00
parent 5a52073849
commit 91d262c2d5
6 changed files with 13 additions and 13 deletions

View File

@@ -62,7 +62,7 @@ tasks:
- "Authorization: token $(decrypt(gitToken,keyfile))" - "Authorization: token $(decrypt(gitToken,keyfile))"
- "-H" - "-H"
- "Content-Type: application/json" - "Content-Type: application/json"
- "@(git)/api/v1/repos/golang/$(gitRepo)/releases" - "@(packages)/$(gitRepo)/releases"
- "-d" - "-d"
- '{"tag_name": "$(version)","name": "$(version)","body": "## Changes\n- Release via API","draft": false,"prerelease": false}' - '{"tag_name": "$(version)","name": "$(version)","body": "## Changes\n- Release via API","draft": false,"prerelease": false}'
parsers: parsers:

View File

@@ -13,6 +13,7 @@ tasks:
unixPassword: $(unixPassword) unixPassword: $(unixPassword)
installPath: $(installPath) installPath: $(installPath)
keyfile: $(keyfile) keyfile: $(keyfile)
packages: $(packages)
loop: loop:
values: $(app.targets) values: $(app.targets)
as: target as: target

View File

@@ -56,7 +56,7 @@ tasks:
- "Content-Type: application/octet-stream" - "Content-Type: application/octet-stream"
- "--data-binary" - "--data-binary"
- "@$(destDir)/$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).tar.gz" - "@$(destDir)/$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).tar.gz"
- "@(git)/api/v1/repos/golang/$(name)/releases/$(releaseId)/assets?name=$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).tar.gz" - "@(packages)/$(name)/$(version)/$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).tar.gz"
- execute: - execute:
description: "Upload Checksum File" description: "Upload Checksum File"
@@ -71,7 +71,7 @@ tasks:
- "Content-Type: application/octet-stream" - "Content-Type: application/octet-stream"
- "--data-binary" - "--data-binary"
- "@$(destDir)/$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).sha256" - "@$(destDir)/$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).sha256"
- "@(git)/api/v1/repos/golang/$(name)/releases/$(releaseId)/assets?name=$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).sha256" - "@(packages)/$(name)/$(version)/$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).sha256"
- execute: - execute:
description: "Install binary" description: "Install binary"

View File

@@ -70,6 +70,7 @@ tasks:
gitToken: $(git_token) gitToken: $(git_token)
unixPassword: $(unix_password) unixPassword: $(unix_password)
installPath: $(install_path) installPath: $(install_path)
packages: $(packages)
loop: loop:
values: $(apps) values: $(apps)
as: app as: app

View File

@@ -11,8 +11,7 @@ tasks:
script: "@(system)/upgrade_github_application.yaml" script: "@(system)/upgrade_github_application.yaml"
args: args:
settings: $(settings) settings: $(settings)
gitUsername: $(git_username) gitToken: $(git_token)
gitPassword: $(git_password)
keyfile: $(keyfile) keyfile: $(keyfile)
loop: loop:
values: $(github) values: $(github)
@@ -23,8 +22,7 @@ tasks:
script: "@(system)/upgrade_orchestra_application.yaml" script: "@(system)/upgrade_orchestra_application.yaml"
args: args:
settings: $(settings) settings: $(settings)
gitUsername: $(git_username) gitToken: $(git_token)
gitPassword: $(git_password)
keyfile: $(keyfile) keyfile: $(keyfile)
loop: loop:
values: $(orchestra) values: $(orchestra)

View File

@@ -81,22 +81,22 @@ tasks:
exec: "curl" exec: "curl"
args: args:
- "-sS" - "-sS"
- "--user" - "-H"
- "$(decrypt(gitUsername,keyfile)):$(decrypt(gitPassword,keyfile))" - "Authorization: token $(decrypt(gitToken,keyfile))"
- "--upload-file" - "--upload-file"
- "$(tempdir())/$(archive_file)" - "$(tempdir())/$(archive_file)"
- "@(git)/api/packages/public/generic/$(settings.name)/$(new_version)/$(package_file)" - "@(packages)/$(settings.name)/$(new_version)/$(package_file)"
- execute: - execute:
description: "Upload checksum $(sha256_file)" description: "Upload checksum $(sha256_file)"
exec: "curl" exec: "curl"
args: args:
- "-sS" - "-sS"
- "--user" - "-H"
- "$(decrypt(gitUsername,keyfile)):$(decrypt(gitPassword,keyfile))" - "Authorization: token $(decrypt(gitToken,keyfile))"
- "--upload-file" - "--upload-file"
- "$(tempdir())/$(sha256_file)" - "$(tempdir())/$(sha256_file)"
- "@(git)/api/packages/public/generic/$(settings.name)/$(new_version)/$(sha256_package_file)" - "@(packages)/$(settings.name)/$(new_version)/$(sha256_package_file)"
# - execute: # - execute:
# description: "Upload application $(archive_file)" # description: "Upload application $(archive_file)"