Commit bd0b4f26 authored by Sherman Yang's avatar Sherman Yang
Browse files

update data stages.yml for Azure devops

parent e6d4c2ae
Pipeline #13016 failed with stage
in 7 seconds
......@@ -11,36 +11,38 @@ stages:
- group: 'Azure Target Env - ${{environment.name}}'
jobs:
- job: MavenPackageAndPublishArtifacts
- deployment: MavenPackageAndPublishArtifacts
displayName: Build Package and Publish Artifacts
environment: ${{ environment.name }}
pool: $(AGENT_POOL)
steps:
- download: none
- checkout: self
path: s
- task: AzureCLI@1
displayName: 'Docker Build + ACR Push'
# condition: and(succeeded(), eq('${{ parameters.providerName }}', 'Azure'))
env:
IMAGE: $(CONTAINER_REGISTRY_NAME).azurecr.io/crs-catalog-data:v2
inputs:
azureSubscription: '$(SERVICE_CONNECTION_NAME)'
addSpnToEnvironment: true
scriptLocation: inlineScript
inlineScript: |
#!/usr/bin/env bash
set -euo pipefail
curl -L https://aka.ms/acr/installaad/bash | /bin/bash
echo "Logging in to the ACR Registry"
echo "------------------------------------"
az acr login -n $(CONTAINER_REGISTRY_NAME)
pushd data
docker build -t $IMAGE .
docker push $IMAGE
popd
strategy:
runOnce:
deploy:
steps:
- download: none
- checkout: self
path: s
- task: AzureCLI@1
displayName: 'Docker Build + ACR Push'
# condition: and(succeeded(), eq('${{ parameters.providerName }}', 'Azure'))
env:
IMAGE: $(CONTAINER_REGISTRY_NAME).azurecr.io/crs-catalog-data:v2
inputs:
azureSubscription: '$(SERVICE_CONNECTION_NAME)'
addSpnToEnvironment: true
scriptLocation: inlineScript
inlineScript: |
#!/usr/bin/env bash
set -euo pipefail
curl -L https://aka.ms/acr/installaad/bash | /bin/bash
echo "Logging in to the ACR Registry"
echo "------------------------------------"
az acr login -n $(CONTAINER_REGISTRY_NAME)
pushd data
docker build -t $IMAGE .
docker push $IMAGE
popd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment