mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
Merge pull request #3 from akv-platform/v-mazhuk/download-custom-repository
Add ability to run CI build on custom repository
This commit is contained in:
@@ -6,6 +6,16 @@ jobs:
|
|||||||
- group: Image Generation Variables
|
- group: Image Generation Variables
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- task: PowerShell@2
|
||||||
|
displayName: 'Download custom repository'
|
||||||
|
condition: and(ne(variables['CUSTOM_REPOSITORY_BRANCH'], ''), ne(variables['CUSTOM_REPOSITORY_URL'], ''))
|
||||||
|
inputs:
|
||||||
|
targetType: 'inline'
|
||||||
|
script: |
|
||||||
|
Remove-Item -path './*' -Recurse -Force
|
||||||
|
Write-Host "Download $(CUSTOM_REPOSITORY_BRANCH) branch from $(CUSTOM_REPOSITORY_URL)"
|
||||||
|
git clone $(CUSTOM_REPOSITORY_URL) . -b $(CUSTOM_REPOSITORY_BRANCH) --single-branch --depth 1
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Build VM'
|
displayName: 'Build VM'
|
||||||
inputs:
|
inputs:
|
||||||
|
|||||||
Reference in New Issue
Block a user