-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
47 lines (41 loc) · 1.3 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
trigger:
- master
pool:
name: kubernetes-spsa
steps:
# Create a variable
- script: echo "##vso[task.setvariable variable=tag;isOutput=true]${BUILD_SOURCEVERSION:0:8}"
name: setTagStep
- script: echo $(setTagStep.tag)
name: echovar
- script: |
sed -ie "s/#{tag}/$(setTagStep.tag)/g" Deploy.yaml
cp Deploy.yaml Deploy-prd.yaml
cat Deploy.yaml
displayName: 'Completando Deploy.yaml'
#- task: SonarQubePrepare@4
# inputs:
# SonarQube: 'spsa-integraciones'
# scannerMode: 'CLI'
# configMode: 'manual'
# cliProjectKey: '$(Build.Repository.Name)'
# cliProjectName: '$(Build.Repository.Name)'
# cliProjectVersion: '$(Build.SourceVersion)'
# cliSources: '.'
#- task: SonarQubeAnalyze@4
#- task: SonarQubePublish@4
# inputs:
# pollingTimeoutSec: '300'
- task: Docker@2
inputs:
containerRegistry: 'ibm-cloud-cr'
repository: 'camunda-apps/sp-bpm-venta-desagregada'
command: 'buildAndPush'
tags: '$(setTagStep.tag)'
- task: CopyFiles@2
inputs:
contents: '*.yaml'
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'