Skip to content
This repository was archived by the owner on Mar 11, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ pipeline:
- drone_server
- drone_token
commands:
- go get
- go get -u github.com/golang/dep/cmd/dep
- dep ensure
- go test -v ./...

build:
Expand Down Expand Up @@ -47,4 +48,3 @@ pipeline:
target: github_release_api_key
when:
event: tag

314 changes: 314 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[constraint]]
name = "github.com/drone/drone-go"
branch = "master"

[[constraint]]
name = "github.com/hashicorp/terraform"
version = "0.11.7"

[[constraint]]
branch = "master"
name = "golang.org/x/oauth2"
3 changes: 3 additions & 0 deletions drone/resource_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ func resourceRepo() *schema.Resource {
func resourceRepoCreate(data *schema.ResourceData, meta interface{}) error {
client := meta.(drone.Client)

// Refresh repository list
client.RepoListOpts(true, true)

owner, repo, err := parseRepo(data.Get("repository").(string))

if err != nil {
Expand Down