-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cosign to sign Image and binary (#126)
Signed-off-by: Engin Diri <[email protected]>
- Loading branch information
Engin Diri
authored
Aug 13, 2021
1 parent
a81e0cf
commit dc82894
Showing
6 changed files
with
34 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ revive.log | |
/minectl | ||
**/azure.auth | ||
**/ssh/ | ||
**/cosign.key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
project_name: minectl | ||
snapshot: | ||
name_template: '{{ .Tag }}-SNAPSHOT' | ||
before: | ||
hooks: | ||
- go mod tidy | ||
|
@@ -15,6 +17,7 @@ builds: | |
hooks: | ||
post: | ||
- upx "{{ .Path }}" | ||
- sh -c "cosign sign-blob -key $COSIGN_KEY_LOCATION {{ .Path }} > dist/{{ .ProjectName }}_{{ .Version }}_{{ .Target }}.sig" | ||
dockers: | ||
- image_templates: [ "ghcr.io/dirien/{{ .ProjectName }}:{{ .Version }}-amd64" ] | ||
dockerfile: Dockerfile | ||
|
@@ -25,7 +28,7 @@ dockers: | |
- --label=org.opencontainers.image.version={{ .Version }} | ||
- --label=org.opencontainers.image.title={{ .ProjectName }} | ||
- --label=org.opencontainers.image.source=https://github.com/dirien/{{ .ProjectName }} | ||
- image_templates: [ "ghcr.io/dirien/{{ .ProjectName }}:{{ .Version }}-arm64v8" ] | ||
- image_templates: [ "ghcr.io/dirien/{{ .ProjectName }}:{{ .Version }}-arm64" ] | ||
goarch: arm64 | ||
dockerfile: Dockerfile | ||
use: buildx | ||
|
@@ -35,15 +38,6 @@ dockers: | |
- --label=org.opencontainers.image.version={{ .Version }} | ||
- --label=org.opencontainers.image.title={{ .ProjectName }} | ||
- --label=org.opencontainers.image.source=https://github.com/dirien/{{ .ProjectName }} | ||
docker_manifests: | ||
- name_template: ghcr.io/dirien/{{ .ProjectName }}:{{ .Version }} | ||
image_templates: | ||
- ghcr.io/dirien/{{ .ProjectName }}:{{ .Version }}-amd64 | ||
- ghcr.io/dirien/{{ .ProjectName }}:{{ .Version }}-arm64v8 | ||
- name_template: ghcr.io/dirien/{{ .ProjectName }}:latest | ||
image_templates: | ||
- ghcr.io/dirien/{{ .ProjectName }}:{{ .Version }}-amd64 | ||
- ghcr.io/dirien/{{ .ProjectName }}:{{ .Version }}-arm64v8 | ||
brews: | ||
- tap: | ||
owner: dirien | ||
|
@@ -54,7 +48,6 @@ brews: | |
email: [email protected] | ||
|
||
folder: Formula | ||
|
||
homepage: "https://github.com/dirien/minectl" | ||
description: "minectl️️ 🗺️ is a cli for creating Minecraft (java or bedrock) server on different cloud provider." | ||
license: "Apache License 2.0" | ||
|
@@ -63,3 +56,6 @@ archives: | |
- format_overrides: | ||
- goos: windows | ||
format: zip | ||
release: | ||
extra_files: | ||
- glob: dist/*.sig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-----BEGIN PUBLIC KEY----- | ||
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEqaDcx7rWY0xpvTlw/vt2lKj6ioXQ | ||
ygBZV7X6OKsQOUfGH2h8u5/HGy5G6lSM1jHNu/v3XNizn0dmG12HS8kSDA== | ||
-----END PUBLIC KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters