-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add .goreleaser.yaml
for openbao-csi-provider
#6
Open
jessebot
wants to merge
3
commits into
openbao:main
Choose a base branch
from
jessebot:add-go-releaser
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
/dist/ | ||
|
||
dist/ |
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,266 @@ | ||||
# This is an example .goreleaser.yml file with some sensible defaults. | ||||
# Make sure to check the documentation at https://goreleaser.com | ||||
|
||||
# The lines below are called `modelines`. See `:help modeline` | ||||
# Feel free to remove those if you don't want/need to use them. | ||||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json | ||||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj | ||||
|
||||
version: 2 | ||||
|
||||
before: | ||||
hooks: | ||||
# You may remove this if you don't use go modules. | ||||
- go mod tidy | ||||
# you may remove this if you don't need go generate | ||||
- go generate ./... | ||||
|
||||
builds: | ||||
- env: | ||||
- CGO_ENABLED=0 | ||||
goos: | ||||
- linux | ||||
- darwin | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
|
||||
dockers: | ||||
- id: alpine-amd64 | ||||
use: buildx | ||||
goos: linux | ||||
goarch: amd64 | ||||
skip_push: false | ||||
ids: | ||||
- builds-linux | ||||
build_flag_templates: | ||||
- "--pull" | ||||
- "--build-arg=BIN_NAME={{.ProjectName}}" | ||||
- "--build-arg=REVISION={{.FullCommit}}" | ||||
- "--build-arg=VERSION={{.Version}}" | ||||
- "--platform=linux/amd64" | ||||
- "--label=org.opencontainers.image.title={{ .ProjectName }}" | ||||
- "--label=org.opencontainers.image.vendor=OpenBao" | ||||
- "--label=org.opencontainers.image.description=OpenBao CSI Provider {{ .Version }}" | ||||
- "--label=org.opencontainers.image.url=https://github.com/openbao/openbao-csi-provider" | ||||
- "--label=org.opencontainers.image.documentation=https://github.com/openbao/openbao-csi-provider/blob/main/README.md" | ||||
- "--label=org.opencontainers.image.source=https://github.com/openbao/openbao-csi-provider" | ||||
- "--label=org.opencontainers.image.licenses=MPL-2.0" | ||||
- "--label=org.opencontainers.image.version={{ .Version }}" | ||||
- "--label=org.opencontainers.image.revision={{ .FullCommit }}" | ||||
- '--label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}' | ||||
- "--label=release={{ .Version }}" | ||||
- "--label=revision={{ .FullCommit }}" | ||||
- "--label=version={{ .Version }}" | ||||
- "--target=default" | ||||
image_templates: | ||||
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64" | ||||
- "quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64" | ||||
- "docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64" | ||||
extra_files: | ||||
- ./LICENSE | ||||
- ./.release/docker/docker-entrypoint.sh | ||||
- ./CHANGELOG.md | ||||
- id: alpine-arm | ||||
use: buildx | ||||
goos: linux | ||||
goarch: arm | ||||
goarm: "6" | ||||
skip_push: false | ||||
ids: | ||||
- builds-linux | ||||
build_flag_templates: | ||||
- "--pull" | ||||
- "--build-arg=BIN_NAME={{ .ProjectName }}" | ||||
- "--build-arg=REVISION={{ .FullCommit }}" | ||||
- "--build-arg=VERSION={{ .Version }}" | ||||
- "--platform=linux/arm" | ||||
- "--label=org.opencontainers.image.title={{ .ProjectName }}" | ||||
- "--label=org.opencontainers.image.vendor=OpenBao" | ||||
- "--label=org.opencontainers.image.description=OpenBao CSI Provider {{ .Version }}" | ||||
- "--label=org.opencontainers.image.url=https://github.com/openbao/openbao-csi-provider" | ||||
- "--label=org.opencontainers.image.documentation=https://github.com/openbao/openbao-csi-provider/blob/main/README.md" | ||||
- "--label=org.opencontainers.image.source=https://github.com/openbao/openbao-csi-provider" | ||||
- "--label=org.opencontainers.image.licenses=MPL-2.0" | ||||
- "--label=org.opencontainers.image.version={{ .Version }}" | ||||
- "--label=org.opencontainers.image.revision={{ .FullCommit }}" | ||||
- '--label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}' | ||||
- "--label=release={{ .Version }}" | ||||
- "--label=revision={{ .FullCommit }}" | ||||
- "--label=version={{ .Version }}" | ||||
- "--target=default" | ||||
image_templates: | ||||
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm" | ||||
- "quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm" | ||||
- "docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm" | ||||
extra_files: | ||||
- ./LICENSE | ||||
- ./.release/docker/docker-entrypoint.sh | ||||
- ./CHANGELOG.md | ||||
- id: alpine-arm64 | ||||
use: buildx | ||||
goos: linux | ||||
goarch: arm64 | ||||
goarm: "8" | ||||
skip_push: false | ||||
ids: | ||||
- builds-linux | ||||
build_flag_templates: | ||||
- "--pull" | ||||
- "--build-arg=BIN_NAME={{ .ProjectName }}" | ||||
- "--build-arg=REVISION={{ .FullCommit }}" | ||||
- "--build-arg=VERSION={{ .Version }}" | ||||
- "--platform=linux/arm64" | ||||
- "--label=org.opencontainers.image.title={{ .ProjectName }}" | ||||
- "--label=org.opencontainers.image.vendor=OpenBao" | ||||
- "--label=org.opencontainers.image.description=OpenBao CSI Provider {{ .Version }}" | ||||
- "--label=org.opencontainers.image.url=https://github.com/openbao/openbao-csi-provider" | ||||
- "--label=org.opencontainers.image.documentation=https://github.com/openbao/openbao-csi-provider/blob/main/README.md" | ||||
- "--label=org.opencontainers.image.source=https://github.com/openbao/openbao-csi-provider" | ||||
- "--label=org.opencontainers.image.licenses=MPL-2.0" | ||||
- "--label=org.opencontainers.image.version={{ .Version }}" | ||||
- "--label=org.opencontainers.image.revision={{ .FullCommit }}" | ||||
- '--label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}' | ||||
- "--label=release={{ .Version }}" | ||||
- "--label=revision={{ .FullCommit }}" | ||||
- "--label=version={{ .Version }}" | ||||
- "--target=default" | ||||
image_templates: | ||||
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64" | ||||
- "quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64" | ||||
- "docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64" | ||||
extra_files: | ||||
- ./LICENSE | ||||
- ./.release/docker/docker-entrypoint.sh | ||||
- ./CHANGELOG.md | ||||
|
||||
docker_manifests: | ||||
- name_template: ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }} | ||||
skip_push: false | ||||
image_templates: | ||||
- ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64 | ||||
- ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm | ||||
- ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64 | ||||
- name_template: ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Major }}.{{ .Minor }} | ||||
skip_push: false | ||||
image_templates: | ||||
- ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64 | ||||
- ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm | ||||
- ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64 | ||||
- name_template: ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Major }} | ||||
skip_push: false | ||||
image_templates: | ||||
- ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64 | ||||
- ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm | ||||
- ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64 | ||||
- name_template: ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:latest | ||||
skip_push: false | ||||
image_templates: | ||||
- ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64 | ||||
- ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm | ||||
- ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64 | ||||
- name_template: docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }} | ||||
skip_push: false | ||||
image_templates: | ||||
- docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64 | ||||
- docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm | ||||
- docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64 | ||||
- name_template: docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Major }}.{{ .Minor }} | ||||
skip_push: false | ||||
image_templates: | ||||
- docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64 | ||||
- docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm | ||||
- docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64 | ||||
- name_template: docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Major }} | ||||
skip_push: false | ||||
image_templates: | ||||
- docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64 | ||||
- docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm | ||||
- docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64 | ||||
- name_template: docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:latest | ||||
skip_push: false | ||||
image_templates: | ||||
- docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64 | ||||
- docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm | ||||
- docker.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64 | ||||
- name_template: quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }} | ||||
skip_push: false | ||||
image_templates: | ||||
- quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64 | ||||
- quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm | ||||
- quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64 | ||||
- name_template: quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Major }}.{{ .Minor }} | ||||
skip_push: false | ||||
image_templates: | ||||
- quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64 | ||||
- quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm | ||||
- quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64 | ||||
- name_template: quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Major }} | ||||
skip_push: false | ||||
image_templates: | ||||
- quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64 | ||||
- quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm | ||||
- quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64 | ||||
- name_template: quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:latest | ||||
skip_push: false | ||||
image_templates: | ||||
- quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-amd64 | ||||
- quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm | ||||
- quay.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/openbao-csi-provider:{{ .Version }}-arm64 | ||||
|
||||
archives: | ||||
- format: tar.gz | ||||
# this name template makes the OS and Arch compatible with the results of `uname`. | ||||
name_template: >- | ||||
{{ .ProjectName }}_ | ||||
{{- title .Os }}_ | ||||
{{- if eq .Arch "amd64" }}x86_64 | ||||
{{- else if eq .Arch "386" }}i386 | ||||
{{- else }}{{ .Arch }}{{ end }} | ||||
{{- if .Arm }}v{{ .Arm }}{{ end }} | ||||
|
||||
changelog: | ||||
sort: asc | ||||
filters: | ||||
exclude: | ||||
- "^docs:" | ||||
- "^test:" | ||||
|
||||
signs: | ||||
- id: cosign | ||||
artifacts: all | ||||
cmd: cosign | ||||
certificate: "${artifact}.pem" | ||||
args: | ||||
- "sign-blob" | ||||
- "--oidc-issuer=https://token.actions.githubusercontent.com" | ||||
- "--output-certificate=${certificate}" | ||||
- "--output-signature=${signature}" | ||||
- "${artifact}" | ||||
- "--yes" # needed on cosign 2.0.0+ | ||||
- id: gpg | ||||
artifacts: all | ||||
signature: "${artifact}.gpgsig" | ||||
cmd: gpg | ||||
stdin: "{{ .Env.GPG_PASSWORD }}" | ||||
args: | ||||
- "--batch" | ||||
- "--default-key={{ .Env.GPG_FINGERPRINT }}" | ||||
- "--output=${signature}" | ||||
- "--detach-sign" | ||||
- "${artifact}" | ||||
|
||||
docker_signs: | ||||
- artifacts: all | ||||
args: | ||||
- "sign" | ||||
- "--oidc-issuer=https://token.actions.githubusercontent.com" | ||||
- "${artifact}@${digest}" | ||||
- "--yes" # needed on cosign 2.0.0+ | ||||
|
||||
release: | ||||
github: | ||||
owner: openbao | ||||
name: openbao-csi-provider | ||||
draft: true #${{ .Env.GITHUB_RELEASE_DRAFT }} | ||||
replace_existing_draft: false | ||||
prerelease: ${{ .Env.GITHUB_PRERELEASE }} | ||||
make_latest: ${{ .Env.GITHUB_RELEASE_MAKE_LATEST }} | ||||
disable: false |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the CSI provider work on Darwin out of curiosity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, I have no idea 🙃 We can remove Darwin, but I have no idea if it works there. Considering it's a CSI provider for k8s, it's probably safe to remove that 🙏