Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Oct 12, 2023
1 parent a1875bd commit 027a6a9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 17 deletions.
15 changes: 9 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,21 @@ builds:
goarch:
- amd64
- arm64
hooks:
post:
- env:
- GON_SOURCE={{ .Path }}
cmd: gon -log-level=debug gon.hcl
output: true

checksum:
name_template: checksums.txt
algorithm: sha256

signs:
- artifacts: binary
signature: ${artifact}.sig
ids:
- hcloud-build-darwin
cmd: ./script/gon.sh
args:
- "{{ .Path }}"
output: true

- artifacts: all
signature: ${artifact}.sig
id: hcloud-sign
Expand Down
11 changes: 0 additions & 11 deletions gon.hcl

This file was deleted.

20 changes: 20 additions & 0 deletions script/gon.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

set -eu

BINARY_PATH="$1"

GON_CONFIG=$(mktemp gon_XXXX.json)
printf '{
"source": ["%s"],
"bundle_id": "cloud.hetzner.cli",
"apple_id": {
"username": "[email protected]",
"password": "@env:HC_APPLE_DEVELOPER_PASSWORD"
},
"sign": {
"application_identity": "Developer ID Application: Hetzner Cloud GmbH (4PM38G6W5R)"
}
}' "$BINARY_PATH" > "$GON_CONFIG"

gon -log-level=debug "$GON_CONFIG"

0 comments on commit 027a6a9

Please sign in to comment.