summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorStephen Henderson <stephen.henderson@microsoft.com>2019-11-08 10:05:18 -0800
committerGitHub <noreply@github.com>2019-11-08 10:05:18 -0800
commiteb3742d9eeff78eed20947d74af303982968714c (patch)
tree155522ba0d89fde57796d8e9b873f656e52b4256 /examples
parentbc6ba36defc77ce45af93547fa27889de8210ee6 (diff)
Refactor and impl a GitHub service endpoint using the new design (#196)
Diffstat (limited to 'examples')
-rw-r--r--examples/.env.template3
-rw-r--r--examples/github-based-cicd-simple/main.tf7
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/.env.template b/examples/.env.template
index a5e985c3..bdb79338 100644
--- a/examples/.env.template
+++ b/examples/.env.template
@@ -1,3 +1,6 @@
AZDO_GITHUB_SERVICE_CONNECTION_PAT=
AZDO_ORG_SERVICE_URL=
AZDO_PERSONAL_ACCESS_TOKEN=
+AZDO_DOCKERHUB_SERVICE_CONNECTION_USERNAME=
+AZDO_DOCKERHUB_SERVICE_CONNECTION_EMAIL=
+AZDO_DOCKERHUB_SERVICE_CONNECTION_PASSWORD=
diff --git a/examples/github-based-cicd-simple/main.tf b/examples/github-based-cicd-simple/main.tf
index d2c90bcb..ff467e75 100644
--- a/examples/github-based-cicd-simple/main.tf
+++ b/examples/github-based-cicd-simple/main.tf
@@ -14,12 +14,9 @@ resource "azuredevops_project" "project" {
work_item_template = "Agile"
}
-resource "azuredevops_serviceendpoint" "github_serviceendpoint" {
+resource "azuredevops_serviceendpoint_github" "github_serviceendpoint" {
project_id = azuredevops_project.project.id
service_endpoint_name = "GitHub Service Connection"
- service_endpoint_type = "github"
- service_endpoint_url = "http://github.com"
- service_endpoint_owner = "Library"
}
resource "azuredevops_build_definition" "nightly_build" {
@@ -32,6 +29,6 @@ resource "azuredevops_build_definition" "nightly_build" {
repo_name = "microsoft/terraform-provider-azuredevops"
branch_name = "master"
yml_path = ".azdo/azure-pipeline-nightly.yml"
- service_connection_id = azuredevops_serviceendpoint.github_serviceendpoint.id
+ service_connection_id = azuredevops_serviceendpoint_github.github_serviceendpoint.id
}
}