-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename tool and brew release support. Signed-off-by: Serge Logvinov <[email protected]>
- Loading branch information
1 parent
ff575d1
commit 5489208
Showing
10 changed files
with
102 additions
and
42 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
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
project_name: pvecsi-mutate | ||
project_name: pvecsictl | ||
|
||
before: | ||
hooks: | ||
- go mod download | ||
- make release-update | ||
|
||
dist: bin | ||
builds: | ||
- dir: cmd/pvecsi-mutate | ||
binary: pvecsi-mutate-{{ .Os }}-{{ .Arch }} | ||
- dir: cmd/pvecsictl | ||
binary: pvecsictl-{{ .Os }}-{{ .Arch }} | ||
no_unique_dist_dir: true | ||
env: | ||
- CGO_ENABLED=0 | ||
|
@@ -19,33 +18,58 @@ builds: | |
- amd64 | ||
- arm64 | ||
|
||
archives: | ||
- format: binary | ||
name_template: "{{ .Binary }}" | ||
|
||
checksum: | ||
name_template: "checksums.txt" | ||
|
||
snapshot: | ||
name_template: edge | ||
|
||
dockers: | ||
- use: buildx | ||
image_templates: | ||
- ghcr.io/sergelogvinov/pvecsi-mutate:{{ .Version }}-amd64 | ||
goos: linux | ||
goarch: amd64 | ||
build_flag_templates: | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--target=pvecsi-mutate-goreleaser" | ||
- "--platform=linux/amd64" | ||
- use: buildx | ||
image_templates: | ||
- ghcr.io/sergelogvinov/pvecsi-mutate:{{ .Version }}-arm64 | ||
goos: linux | ||
goarch: arm64 | ||
build_flag_templates: | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--target=pvecsi-mutate-goreleaser" | ||
- "--platform=linux/arm64" | ||
docker_manifests: | ||
- name_template: ghcr.io/sergelogvinov/{{ .ProjectName }}:{{ .Version }} | ||
image_templates: | ||
- ghcr.io/sergelogvinov/{{ .ProjectName }}:{{ .Version }}-amd64 | ||
- ghcr.io/sergelogvinov/{{ .ProjectName }}:{{ .Version }}-arm64 | ||
# dockers: | ||
# - use: buildx | ||
# image_templates: | ||
# - ghcr.io/sergelogvinov/pvecsictl:{{ .Version }}-amd64 | ||
# goos: linux | ||
# goarch: amd64 | ||
# build_flag_templates: | ||
# - "--label=org.opencontainers.image.version={{.Version}}" | ||
# - "--target=pvecsictl-goreleaser" | ||
# - "--platform=linux/amd64" | ||
# - use: buildx | ||
# image_templates: | ||
# - ghcr.io/sergelogvinov/pvecsictl:{{ .Version }}-arm64 | ||
# goos: linux | ||
# goarch: arm64 | ||
# build_flag_templates: | ||
# - "--label=org.opencontainers.image.version={{.Version}}" | ||
# - "--target=pvecsictl-goreleaser" | ||
# - "--platform=linux/arm64" | ||
# docker_manifests: | ||
# - name_template: ghcr.io/sergelogvinov/{{ .ProjectName }}:{{ .Version }} | ||
# image_templates: | ||
# - ghcr.io/sergelogvinov/{{ .ProjectName }}:{{ .Version }}-amd64 | ||
# - ghcr.io/sergelogvinov/{{ .ProjectName }}:{{ .Version }}-arm64 | ||
|
||
brews: | ||
- name: pvecsictl | ||
folder: Formula | ||
homepage: https://github.com/sergelogvinov/proxmox-csi-plugin | ||
description: "Proxmox VE CSI Mutate tool" | ||
license: Apache-2.0 | ||
|
||
commit_author: | ||
name: sergelogvinov | ||
email: [email protected] | ||
repository: | ||
owner: sergelogvinov | ||
name: homebrew-pvecsictl | ||
branch: main | ||
token: "{{ .Env.HOMEBREW_PAT }}" | ||
|
||
test: | | ||
system "#{bin}/pvecsictl -v" | ||
install: | | ||
bin.install "{{ .Binary }}" => "pvecsictl" |
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
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 |
---|---|---|
|
@@ -30,7 +30,7 @@ import ( | |
) | ||
|
||
var ( | ||
command = "pvecsi-mutate" | ||
command = "pvecsictl" | ||
version = "v0.0.0" | ||
commit = "none" | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.