Updating
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
# Starter pipeline
|
||||
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
||||
# Add steps that build, run tests, deploy, and more:
|
||||
# https://aka.ms/yaml
|
||||
|
||||
name: 'LCU.Api.Internal.ArchiverApi.$(Build.SourceBranchName).$(Date:yyyyMMdd)$(Rev:.r)'
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- '*'
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
- repository: azdo_pipeline_templates
|
||||
type: git
|
||||
name: Infrastructure Platform/azdo-pipeline-templates
|
||||
ref: main
|
||||
|
||||
pool:
|
||||
name: LCUOnPrem
|
||||
demands:
|
||||
- Agent.Name -equals SLES-Docker
|
||||
|
||||
stages:
|
||||
- template: docker-build-push.yaml@azdo_pipeline_templates
|
||||
parameters:
|
||||
azdo_agent_pool: vmss-sub-df-lcu-apps-qa-lz-uscz
|
||||
docker_registry_service_connection: Docker Registry LMCU
|
||||
docker_container_repository_name: landmarkcu/archiver-api
|
||||
dockerfile_path: ./Dockerfile
|
||||
docker_image_tags: |
|
||||
$(Build.BuildId)
|
||||
latest
|
||||
|
||||
- stage: Publish
|
||||
displayName: Publish
|
||||
dependsOn: CI
|
||||
condition: or(eq(variables['Build.SourceBranchName'], 'develop'), eq(variables['Build.SourceBranchName'], 'master'))
|
||||
jobs:
|
||||
- job: Publish
|
||||
displayName: Publish
|
||||
steps:
|
||||
- task: CmdLine@2
|
||||
inputs:
|
||||
script: 'sed -i ''s/{{version}}/$(Build.BuildID)/g'' _deploy/base/Deployment.yaml'
|
||||
|
||||
- task: PublishPipelineArtifact@1
|
||||
inputs:
|
||||
targetPath: './_deploy'
|
||||
artifact: 'overlay'
|
||||
publishLocation: 'pipeline'
|
||||
displayName: 'Publish Overlay Artifact'
|
||||
Reference in New Issue
Block a user