-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make port, protocol and virtual directory configurable for on-premises (
#115)
- Loading branch information
1 parent
573ae65
commit 9927121
Showing
3 changed files
with
94 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,10 @@ Next create and run a container from the image: | |
```bash | ||
docker run --rm -t \ | ||
-e GITHUB_ACCESS_TOKEN=<your-github-token-here> \ | ||
-e AZURE_HOSTNAME=<your-hostname> \ | ||
-e AZURE_PROTOCOL=<your-azure-devops-installation-transport-protocol> \ | ||
-e AZURE_HOSTNAME=<your-azure-devops-installation-hostname> \ | ||
-e AZURE_PORT=<your-azure-devops-installation-port> \ | ||
-e AZURE_VIRTUAL_DIRECTORY=<your-azure-devops-installation-virtual-directory> \ | ||
-e AZURE_ACCESS_TOKEN=<your-devops-token-here> \ | ||
-e AZURE_ORGANIZATION=<your-organization-here> \ | ||
-e AZURE_PROJECT=<your-project-here> \ | ||
|
@@ -32,7 +35,7 @@ docker run --rm -t \ | |
tingle/dependabot-azure-devops:0.4.0 | ||
``` | ||
|
||
An example: | ||
An example, for Azure DevOps Services: | ||
|
||
```bash | ||
docker run --rm -t \ | ||
|
@@ -58,14 +61,46 @@ docker run --rm -t \ | |
tingle/dependabot-azure-devops:0.4.0 | ||
``` | ||
|
||
An example, for Azure DevOps Server: | ||
|
||
```bash | ||
docker run --rm -t \ | ||
-e GITHUB_ACCESS_TOKEN=ijkl..mnop \ | ||
-e AZURE_PROTOCOL=http \ | ||
-e AZURE_HOSTNAME=my-devops.com \ | ||
-e AZURE_PORT=8080 \ | ||
-e AZURE_VIRTUAL_DIRECTORY=tfs \ | ||
-e AZURE_ACCESS_TOKEN=abcd..efgh \ | ||
-e AZURE_ORGANIZATION=tinglesoftware \ | ||
-e AZURE_PROJECT=oss \ | ||
-e AZURE_REPOSITORY=dependabot-azure-devops \ | ||
-e DEPENDABOT_PACKAGE_MANAGER=nuget \ | ||
-e DEPENDABOT_DIRECTORY=/ \ | ||
-e DEPENDABOT_TARGET_BRANCH=main \ | ||
-e DEPENDABOT_VERSIONING_STRATEGY=auto \ | ||
-e DEPENDABOT_OPEN_PULL_REQUESTS_LIMIT=10 \ | ||
-e DEPENDABOT_EXTRA_CREDENTIALS='[{\"type\":\"npm_registry\",\"token\":\"<redacted>\",\"registry\":\"npm.fontawesome.com\"}]' \ | ||
-e DEPENDABOT_ALLOW='[{\"name\":"django*",\"type\":\"direct\"}]' \ | ||
-e DEPENDABOT_IGNORE='[{\"name\":\"express\",\"versions\":[\"4.x\",\"5.x\"]}]' \ | ||
-e AZURE_WORK_ITEM_ID=123 \ | ||
-e AZURE_SET_AUTO_COMPLETE=true \ | ||
-e AZURE_AUTO_APPROVE_PR=true \ | ||
-e [email protected] \ | ||
-e AZURE_AUTO_APPROVE_USER_TOKEN=ijkl..mnop \ | ||
tingle/dependabot-azure-devops:0.4.0 | ||
``` | ||
|
||
## Environment Variables | ||
|
||
To run the script, some environment variables are required. | ||
|
||
|Variable Name|Description| | ||
|--|--| | ||
|GITHUB_ACCESS_TOKEN|**_Optional_**. The GitHub token for authenticating requests against GitHub public repositories. This is useful to avoid rate limiting errors. The token must include permissions to read public repositories. See the [documentation](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) for more on Personal Access Tokens.| | ||
|AZURE_HOSTNAME|**_Optional_**. The hostname of the where the organization is hosted. Defaults to `dev.azure.com` but for older organizations this may have the format `xxx.visualstudio.com`. Check the url on the browser. For Azure DevOps Server, this may be the unexposed one e.g. `localhost:8080` or one that you have exposed publicly via DNS.| | ||
|AZURE_PROTOCOL|**_Optional_**. The transport protocol (`http` or `https`) used by your Azure DevOps installation. Defaults to `https`.| | ||
|AZURE_HOSTNAME|**_Optional_**. The hostname of the where the organization is hosted. Defaults to `dev.azure.com` but for older organizations this may have the format `xxx.visualstudio.com`. Check the url on the browser. For Azure DevOps Server, this may be the unexposed one e.g. `localhost` or one that you have exposed publicly via DNS.| | ||
|AZURE_PORT|**_Optional_**. The TCP port used by your Azure DevOps installation. Defaults to `80` or `443`, depending on the indicated protocol.| | ||
|AZURE_VIRTUAL_DIRECTORY|**_Optional_**. Some Azure DevOps Server installations are hosted in an IIS virtual directory, traditionally named tfs. This variable can be used to define the name of that virtual directory. By default, this is not set.| | ||
|AZURE_ACCESS_TOKEN|**_Required_**. The Personal Access in Azure DevOps for accessing the repository and creating pull requests. The required permissions are: <br/>- Code (Full)<br/>- Pull Requests Threads (Read & Write).<br/>See the [documentation](https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=preview-page#create-a-pat) to know more about creating a Personal Access Token| | ||
|AZURE_ORGANIZATION|**_Required_**. The name of the Azure DevOps Organization. This is can be extracted from the URL of the home page. https://dev.azure.com/{organization}/| | ||
|AZURE_PROJECT|**_Required_**. The name of the Azure DevOps Project within the above organization. This can be extracted them the URL too. https://dev.azure.com/{organization}/{project}/| | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters