mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(archival): ✨🔨 add build config
This commit is contained in:
parent
47559ce7e5
commit
02dd144a18
2 changed files with 100 additions and 1 deletions
96
services/Archival/azure-pipelines.api.yaml
Normal file
96
services/Archival/azure-pipelines.api.yaml
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
trigger:
|
||||
batch: false
|
||||
branches:
|
||||
include: [master]
|
||||
paths:
|
||||
include:
|
||||
[
|
||||
services/Archival/azure-pipelines.api.yaml,
|
||||
services/SharedKernel/FilterLists.SharedKernel.Apis.Contracts/*,
|
||||
services/SharedKernel/FilterLists.SharedKernel.Apis.Clients/*,
|
||||
services/SharedKernel/FilterLists.SharedKernel.Logging/*,
|
||||
services/SharedKernel/FilterLists.SharedKernel.SeedWork/*,
|
||||
services/Archival/FilterLists.Archival.Infrastructure/*,
|
||||
services/Archival/FilterLists.Archival.Application/*,
|
||||
services/Archival/FilterLists.Archival.Api/*,
|
||||
docker-compose.yml,
|
||||
docker-compose.prod.yml,
|
||||
.env,
|
||||
.dockerignore,
|
||||
]
|
||||
|
||||
pr:
|
||||
autoCancel: false
|
||||
branches:
|
||||
include: [master]
|
||||
paths:
|
||||
include:
|
||||
[
|
||||
services/Archival/azure-pipelines.api.yaml,
|
||||
services/SharedKernel/FilterLists.SharedKernel.Apis.Contracts/*,
|
||||
services/SharedKernel/FilterLists.SharedKernel.Apis.Clients/*,
|
||||
services/SharedKernel/FilterLists.SharedKernel.Logging/*,
|
||||
services/SharedKernel/FilterLists.SharedKernel.SeedWork/*,
|
||||
services/Archival/FilterLists.Archival.Infrastructure/*,
|
||||
services/Archival/FilterLists.Archival.Application/*,
|
||||
services/Archival/FilterLists.Archival.Api/*,
|
||||
docker-compose.yml,
|
||||
docker-compose.prod.yml,
|
||||
.env,
|
||||
.dockerignore,
|
||||
]
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
|
||||
variables:
|
||||
COMPOSE_DOCKER_CLI_BUILD: 1
|
||||
DOCKER_BUILDKIT: 1
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
fetchDepth: 2
|
||||
|
||||
- task: Docker@2
|
||||
displayName: build
|
||||
inputs:
|
||||
containerRegistry: github-container-registry
|
||||
repository: collinbarrett/filterlists-archival-api
|
||||
command: build
|
||||
Dockerfile: services/Archival/FilterLists.Archival.Api/Dockerfile
|
||||
buildContext: ./services
|
||||
tags: |
|
||||
latest
|
||||
$(Build.BuildId)
|
||||
addPipelineData: false
|
||||
|
||||
- task: Docker@2
|
||||
displayName: push
|
||||
inputs:
|
||||
containerRegistry: github-container-registry
|
||||
repository: collinbarrett/filterlists-archival-api
|
||||
command: push
|
||||
tags: |
|
||||
latest
|
||||
$(Build.BuildId)
|
||||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: stage docker-compose files
|
||||
inputs:
|
||||
SourceFolder: $(Build.SourcesDirectory)
|
||||
Contents: |
|
||||
docker-compose.yml
|
||||
docker-compose.prod.yml
|
||||
TargetFolder: $(Build.ArtifactStagingDirectory)
|
||||
CleanTargetFolder: true
|
||||
OverWrite: true
|
||||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: publish docker-compose files
|
||||
inputs:
|
||||
PathtoPublish: $(Build.ArtifactStagingDirectory)
|
||||
ArtifactName: drop
|
||||
publishLocation: Container
|
||||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
||||
|
|
@ -52,6 +52,9 @@ EndProject
|
|||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FilterLists.Directory.Infrastructure.Migrations.Tests", "Directory\FilterLists.Directory.Infrastructure.Migrations.Tests\FilterLists.Directory.Infrastructure.Migrations.Tests.csproj", "{8B07EF04-5516-40BB-B21B-CEC6F90EC631}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Archival", "Archival", "{5E52FEF9-9605-4ACB-8A42-A20E06331599}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
Archival\azure-pipelines.api.yaml = Archival\azure-pipelines.api.yaml
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FilterLists.Archival.Api", "Archival\FilterLists.Archival.Api\FilterLists.Archival.Api.csproj", "{F625C241-0501-4AEB-8B82-609C93EE6B7D}"
|
||||
EndProject
|
||||
|
|
@ -67,7 +70,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FilterLists.SharedKernel.Ap
|
|||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FilterLists.SharedKernel.Apis.Clients", "SharedKernel\FilterLists.SharedKernel.Apis.Clients\FilterLists.SharedKernel.Apis.Clients.csproj", "{FF6F3D83-A96C-412C-BAFF-63BA89ADD31F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FilterLists.SharedKernel.SeedWork", "SharedKernel\FilterLists.SharedKernel.SeedWork\FilterLists.SharedKernel.SeedWork.csproj", "{FE809E6A-CEC4-4944-A69B-690C30776631}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FilterLists.SharedKernel.SeedWork", "SharedKernel\FilterLists.SharedKernel.SeedWork\FilterLists.SharedKernel.SeedWork.csproj", "{FE809E6A-CEC4-4944-A69B-690C30776631}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
|
|
|||
Loading…
Reference in a new issue