mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-29 18:21:10 +00:00
fix(ci): missing releases from HashiCorp Registry (#1118)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
parent
b84e5c7399
commit
ffc64d209a
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
@ -28,20 +28,13 @@ jobs:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Unshallow
|
||||
run: git fetch --prune --unshallow
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: "go.mod"
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Import GPG key
|
||||
id: import_gpg
|
||||
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 #v6.1.0
|
||||
with:
|
||||
git_user_signingkey: true
|
||||
gpg_private_key: "${{ secrets.GPG_PRIVATE_KEY }}"
|
||||
passphrase: "${{ secrets.PASSPHRASE }}"
|
||||
|
||||
@ -49,7 +42,7 @@ jobs:
|
||||
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 #v5.0.0
|
||||
with:
|
||||
version: latest
|
||||
args: release --rm-dist
|
||||
args: release --clean
|
||||
env:
|
||||
GPG_FINGERPRINT: "${{ steps.import_gpg.outputs.fingerprint }}"
|
||||
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
|
||||
|
@ -2,7 +2,8 @@
|
||||
# behavior.
|
||||
before:
|
||||
hooks:
|
||||
- go mod download
|
||||
# this is just an example and not a requirement for provider building/publishing
|
||||
- go mod tidy
|
||||
builds:
|
||||
- env:
|
||||
# goreleaser does not work with CGO, it could also complicate
|
||||
@ -32,13 +33,16 @@ archives:
|
||||
- format: zip
|
||||
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
|
||||
checksum:
|
||||
extra_files:
|
||||
- glob: 'terraform-registry-manifest.json'
|
||||
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
|
||||
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
|
||||
algorithm: sha256
|
||||
signs:
|
||||
- artifacts: checksum
|
||||
args:
|
||||
# if you are using this in a GitHub action or some other automated pipeline, you
|
||||
# need to pass the batch flag to indicate it's not interactive.
|
||||
# need to pass the batch flag to indicate its not interactive.
|
||||
- "--batch"
|
||||
- "--local-user"
|
||||
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
|
||||
@ -47,6 +51,10 @@ signs:
|
||||
- "--detach-sign"
|
||||
- "${artifact}"
|
||||
release:
|
||||
draft: false
|
||||
extra_files:
|
||||
- glob: 'terraform-registry-manifest.json'
|
||||
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
|
||||
# If you want to manually examine the release before its live, uncomment this line:
|
||||
# draft: true
|
||||
changelog:
|
||||
skip: true
|
||||
|
8
terraform-registry-manifest.json
Normal file
8
terraform-registry-manifest.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"version": 1,
|
||||
"metadata": {
|
||||
"protocol_versions": [
|
||||
"6.0"
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user