Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
applications
renovate
Commits
2ce4fc5b
Unverified
Commit
2ce4fc5b
authored
1 year ago
by
Alex Zaytsev
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
docs(azure): simplify Azure Pipeline example (#25719)
parent
0081b1af
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/modules/platform/azure/readme.md
+4
-8
4 additions, 8 deletions
lib/modules/platform/azure/readme.md
with
4 additions
and
8 deletions
lib/modules/platform/azure/readme.md
+
4
−
8
View file @
2ce4fc5b
...
...
@@ -39,7 +39,7 @@ Replace _all_ content in the starter pipeline with:
```
yaml
schedules
:
-
cron
:
'
0
3
*
*
*'
displayName
:
'
Every
day
at
3am'
displayName
:
'
Every
day
at
3am
(UTC)
'
branches
:
include
:
[
main
]
always
:
true
...
...
@@ -59,7 +59,9 @@ steps:
git config --global user.name 'Renovate Bot'
npx --userconfig .npmrc renovate
env
:
TOKEN
:
$(System.AccessToken)
RENOVATE_PLATFORM
:
azure
RENOVATE_ENDPOINT
:
$(System.CollectionUri)
RENOVATE_TOKEN
:
$(System.AccessToken)
```
### Create a .npmrc file
...
...
@@ -79,9 +81,6 @@ Create a `config.js` file in your repository:
```
javascript
module
.
exports
=
{
platform
:
'
azure
'
,
endpoint
:
'
https://dev.azure.com/YOUR-ORG/
'
,
token
:
process
.
env
.
TOKEN
,
hostRules
:
[
{
hostType
:
'
npm
'
,
...
...
@@ -94,7 +93,6 @@ module.exports = {
};
```
For the
`endpoint`
key, replace
`YOUR-ORG`
with your Azure DevOps organization.
For the
`repositories`
key, replace
`YOUR-PROJECT/YOUR-REPO`
with your Azure DevOps project and repository.
### Yarn users
...
...
@@ -105,8 +103,6 @@ Use the `matchHost` config option to specify the full path to the registry.
```
javascript
module
.
exports
=
{
platform
:
'
azure
'
,
endpoint
:
'
https://myorg.visualstudio.com/
'
,
token
:
process
.
env
.
TOKEN
,
hostRules
:
[
{
matchHost
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment