Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
Update azure-pipelines-ci-artifacts.yaml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Azadehkhojandi committed May 29, 2019
1 parent 96ef83e commit 9f61f77
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions databricks-api/azure-pipelines-ci-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ steps:
workingDirectory: $(WORKING_DIR)
displayName: 'Run lint tests'

- script: echo $(AZURE_SUBSCRIPTION)
workingDirectory: $(WORKING_DIR)
displayName: 'test'

- script: docker build -t $(IMAGE_NAME) . # add options to this command to meet your needs
condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/master'))
workingDirectory: '$(modulePath)/databricks-operator'
displayName: 'Docker build'


- task: AzureCLI@1
displayName: Push to Azure Container Registry
displayName: Push to Azure Container Registry
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
azureSubscription: $(AZURE_SUBSCRIPTION)
scriptLocation: inlineScript
Expand All @@ -48,8 +52,10 @@ steps:
inlineScript: az acr build --registry $(ACR_NAME) --image $(IMAGE_NAME) .

- script: echo $(IMAGE_NAME) > $(Build.ArtifactStagingDirectory)/databricks-api.txt
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

- task: PublishBuildArtifacts@1
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: drop
Expand Down

0 comments on commit 9f61f77

Please sign in to comment.