Skip to content

Commit b79d851

Browse files
chore: publishing setup (#59)
1 parent 8af42aa commit b79d851

File tree

18 files changed

+53
-38
lines changed

18 files changed

+53
-38
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/dependabot.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ updates:
55
- package-ecosystem: "gomod"
66
directory: "/"
77
schedule:
8-
interval: "daily"
8+
interval: "weekly"
99
- package-ecosystem: "github-actions"
1010
directory: "/"
1111
schedule:
12-
interval: "daily"
13-
# TODO: Dependabot only updates hashicorp GHAs in the template repository, the following lines can be removed for consumers of this template
14-
allow:
15-
- dependency-name: "hashicorp/*"
12+
interval: "weekly"

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Unshallow
18+
run: git fetch --prune --unshallow
19+
- name: Setup Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: 1.22.4
23+
- name: Import GPG Key
24+
id: import_gpg
25+
uses: crazy-max/ghaction-import-gpg@v6.1.0
26+
with:
27+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
28+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
29+
- name: Run GoReleaser
30+
uses: goreleaser/goreleaser-action@v6.0.0
31+
with:
32+
version: latest
33+
args: release --clean
34+
env:
35+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
36+
# GitHub sets this automatically
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+

.goreleaser.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Visit https://goreleaser.com for documentation on how to customize this
22
# behavior.
3+
version: 2
34
before:
45
hooks:
56
# this is just an example and not a requirement for provider building/publishing
@@ -41,7 +42,7 @@ checksum:
4142
signs:
4243
- artifacts: checksum
4344
args:
44-
# if you are using this in a GitHub action or some other automated pipeline, you
45+
# if you are using this in a GitHub action or some other automated pipeline, you
4546
# need to pass the batch flag to indicate its not interactive.
4647
- "--batch"
4748
- "--local-user"
@@ -57,4 +58,4 @@ release:
5758
# If you want to manually examine the release before its live, uncomment this line:
5859
# draft: true
5960
changelog:
60-
skip: true
61+
disable: true

LICENSE

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
Copyright (c) 2021 HashiCorp, Inc.
2-
31
Mozilla Public License Version 2.0
42
==================================
53

docs/data-sources/group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
3-
page_title: "coderd_group Data Source - coderd"
3+
page_title: "coderd_group Data Source - terraform-provider-coderd"
44
subcategory: ""
55
description: |-
66
An existing group on the coder deployment.

docs/data-sources/organization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
3-
page_title: "coderd_organization Data Source - coderd"
3+
page_title: "coderd_organization Data Source - terraform-provider-coderd"
44
subcategory: ""
55
description: |-
66
An existing organization on the coder deployment.

docs/data-sources/template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
3-
page_title: "coderd_template Data Source - coderd"
3+
page_title: "coderd_template Data Source - terraform-provider-coderd"
44
subcategory: ""
55
description: |-
66
An existing template on the Coder deployment.

docs/data-sources/user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
3-
page_title: "coderd_user Data Source - coderd"
3+
page_title: "coderd_user Data Source - terraform-provider-coderd"
44
subcategory: ""
55
description: |-
66
An existing user on the coder deployment

docs/resources/group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
3-
page_title: "coderd_group Resource - coderd"
3+
page_title: "coderd_group Resource - terraform-provider-coderd"
44
subcategory: ""
55
description: |-
66
A group on the Coder deployment. If you want to have a group resource with unmanaged members, but still want to read the members in Terraform, use the data.coderd_group data source.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy