[2][chore] Convert to independently publishable system

Update references to allow publishing this as an individual provider.ü
This commit is contained in:
xvlcwk
2024-01-12 13:12:36 +01:00
committed by chris
parent bd6992d6e0
commit 018f9785a3
5 changed files with 8 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
# Bitbucket Server Terraform Provider
[![user guide](https://img.shields.io/badge/-user%20guide-blue)](https://registry.terraform.io/providers/gavinbunney/bitbucketserver/latest)
[![user guide](https://img.shields.io/badge/-user%20guide-blue)](https://registry.terraform.io/providers/xvlcwk-terraform/bitbucketserver/latest)
This terraform provider allows management of **Bitbucket Server** resources. The bundled terraform bitbucket provider works only for Bitbucket Cloud.
@@ -9,8 +9,6 @@ This terraform provider allows management of **Bitbucket Server** resources. The
Download a binary for your system from the release page and remove the `-os-arch` details so you're left with `terraform-provider-bitbucketserver`.
Use `chmod +x` to make it executable and then either place it at the root of your Terraform folder or in the Terraform plugin folder on your system.
See [User Guide](https://gavinbunney.github.io/terraform-provider-bitbucketserver) for details on all the provided data and resource types.
### Example
```hcl
@@ -41,7 +39,7 @@ resource "bitbucketserver_repository" "test" {
- [Go](https://golang.org/doc/install) 1.11+
- correctly setup [GOPATH](http://golang.org/doc/code.html#GOPATH
- add `$GOPATH/bin` to your `$PATH`
- clone this repository to `$GOPATH/src/github.com/gavinbunney/terraform-provider-bitbucketserver`
- clone this repository to `$GOPATH/src/github.com/xvlcwk-terraform/terraform-provider-bitbucketserver`
### Building the provider

View File

@@ -4,7 +4,7 @@ import (
"net/http"
"strings"
"github.com/gavinbunney/terraform-provider-bitbucketserver/bitbucket/marketplace"
"github.com/xvlcwk-terraform/terraform-provider-bitbucketserver/bitbucket/marketplace"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/terraform"

View File

@@ -16,7 +16,7 @@ terraform {
required_providers {
bitbucketserver = {
source = "gavinbunney/bitbucketserver"
source = "xvlcwk-terraform/bitbucketserver"
}
}
}
@@ -30,7 +30,7 @@ The following one-liner script will fetch the latest provider version and downlo
```bash
$ mkdir -p ~/.terraform.d/plugins && \
curl -Ls https://api.github.com/repos/gavinbunney/terraform-provider-bitbucketserver/releases/latest \
curl -Ls https://api.github.com/repos/xvlcwk-terraform/terraform-provider-bitbucketserver/releases/latest \
| jq -r ".assets[] | select(.browser_download_url | contains(\"$(uname -s | tr A-Z a-z)\")) | select(.browser_download_url | contains(\"amd64\")) | .browser_download_url" \
| xargs -n 1 curl -Lo ~/.terraform.d/plugins/terraform-provider-bitbucketserver.zip && \
pushd ~/.terraform.d/plugins/ && \
@@ -44,7 +44,7 @@ $ mkdir -p ~/.terraform.d/plugins && \
#### Install manually
If you don't want to use the one-liner above, you can download a binary for your system from the [release page](https://github.com/gavinbunney/terraform-provider-bitbucketserver/releases),
If you don't want to use the one-liner above, you can download a binary for your system from the [release page](https://github.com/xvlcwk-terraform/terraform-provider-bitbucketserver/releases),
then either place it at the root of your Terraform folder or in the Terraform plugin folder on your system.

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/gavinbunney/terraform-provider-bitbucketserver
module github.com/xvlcwk-terraform/terraform-provider-bitbucketserver
require github.com/hashicorp/terraform v0.12.2

View File

@@ -1,8 +1,8 @@
package main
import (
"github.com/gavinbunney/terraform-provider-bitbucketserver/bitbucket"
"github.com/hashicorp/terraform/plugin"
"github.com/xvlcwk-terraform/terraform-provider-bitbucketserver/bitbucket"
)
func main() {