mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(api-docs): ✨ add api-docs build pipe config
This commit is contained in:
parent
240194eec1
commit
9428361906
1 changed files with 35 additions and 0 deletions
35
services/azure-pipelines.api-docs.yaml
Normal file
35
services/azure-pipelines.api-docs.yaml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
trigger:
|
||||
batch: false
|
||||
branches:
|
||||
include: [master]
|
||||
paths:
|
||||
include: [docker-compose.yml, docker-compose.prod.yml]
|
||||
|
||||
pr: none
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
fetchDepth: 2
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: stage files
|
||||
inputs:
|
||||
SourceFolder: $(Build.SourcesDirectory)
|
||||
Contents: |
|
||||
docker-compose.yml
|
||||
docker-compose.prod.yml
|
||||
TargetFolder: $(Build.ArtifactStagingDirectory)
|
||||
CleanTargetFolder: true
|
||||
OverWrite: true
|
||||
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: publish files
|
||||
inputs:
|
||||
PathtoPublish: $(Build.ArtifactStagingDirectory)
|
||||
ArtifactName: drop
|
||||
publishLocation: Container
|
||||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
||||
Loading…
Reference in a new issue