Skip to content

Commit

Permalink
Update azure-pipelines.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Usha committed Dec 10, 2019
1 parent f5218de commit fe0d62d
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ variables:
STATISTICS_SERVICE_PORT: '7000'
NOTIFICATION_SERVICE_PORT: '8000'
vmImageName: 'ubuntu-latest'
IMAGE_TAG: azp-${{ github.sha }}


stages:
- stage: Build
displayName: Build & Push Container Images
displayName: Build stage
jobs:
- job: Build
- job: Build & Push Container Images
displayName: Build
pool:
vmImage: $(vmImageName)
Expand All @@ -36,19 +37,13 @@ stages:
KeyVaultName: 'piggymetrics'
SecretsFilter: '*'

- task: replacetokens@3
displayName: Replace variables in all the pom files
inputs:
targetFiles: '$(Pipeline.Workspace)/*/*/pom.xml'
keepToken: true
tokenPrefix: '${'
tokenSuffix: '}'

- task: Bash@3
displayName: Build container images for each service
inputs:
targetType: 'inline'
script: |
export CONTAINER_REGISTRY=$(CONTAINER_REGISTRY)
export IMAGE_TAG=$(IMAGE_TAG)
echo 'Install ACR AAD credential helper and login'
curl -L https://aka.ms/acr/installaad/bash | /bin/bash
Expand Down Expand Up @@ -108,7 +103,7 @@ stages:
SecretsFilter: '*'

- task: replacetokens@3
displayName: Replace CONTAINER_REGISTRY name in all the manifest files
displayName: Replace CONTAINER_REGISTRY & IMAGE_TAG in all the manifest files
inputs:
targetFiles: '$(Pipeline.Workspace)/kubernetes/*.yaml'
tokenPrefix: '${'
Expand Down

0 comments on commit fe0d62d

Please sign in to comment.