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
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Unshallow
|
|
||||||
run: git fetch --prune --unshallow
|
|
||||||
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
with:
|
||||||
go-version-file: "go.mod"
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Import GPG key
|
- name: Import GPG key
|
||||||
id: import_gpg
|
id: import_gpg
|
||||||
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 #v6.1.0
|
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 #v6.1.0
|
||||||
with:
|
with:
|
||||||
git_user_signingkey: true
|
|
||||||
gpg_private_key: "${{ secrets.GPG_PRIVATE_KEY }}"
|
gpg_private_key: "${{ secrets.GPG_PRIVATE_KEY }}"
|
||||||
passphrase: "${{ secrets.PASSPHRASE }}"
|
passphrase: "${{ secrets.PASSPHRASE }}"
|
||||||
|
|
||||||
@ -49,7 +42,7 @@ jobs:
|
|||||||
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 #v5.0.0
|
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 #v5.0.0
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
args: release --rm-dist
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GPG_FINGERPRINT: "${{ steps.import_gpg.outputs.fingerprint }}"
|
GPG_FINGERPRINT: "${{ steps.import_gpg.outputs.fingerprint }}"
|
||||||
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
|
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
# behavior.
|
# behavior.
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
- go mod download
|
# this is just an example and not a requirement for provider building/publishing
|
||||||
|
- go mod tidy
|
||||||
builds:
|
builds:
|
||||||
- env:
|
- env:
|
||||||
# goreleaser does not work with CGO, it could also complicate
|
# goreleaser does not work with CGO, it could also complicate
|
||||||
@ -32,13 +33,16 @@ archives:
|
|||||||
- format: zip
|
- format: zip
|
||||||
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
|
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
|
||||||
checksum:
|
checksum:
|
||||||
|
extra_files:
|
||||||
|
- glob: 'terraform-registry-manifest.json'
|
||||||
|
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
|
||||||
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
|
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
|
||||||
algorithm: sha256
|
algorithm: sha256
|
||||||
signs:
|
signs:
|
||||||
- artifacts: checksum
|
- artifacts: checksum
|
||||||
args:
|
args:
|
||||||
# if you are using this in a GitHub action or some other automated pipeline, you
|
# 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"
|
- "--batch"
|
||||||
- "--local-user"
|
- "--local-user"
|
||||||
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
|
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
|
||||||
@ -47,6 +51,10 @@ signs:
|
|||||||
- "--detach-sign"
|
- "--detach-sign"
|
||||||
- "${artifact}"
|
- "${artifact}"
|
||||||
release:
|
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:
|
changelog:
|
||||||
skip: true
|
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