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

Commit

Permalink
update api build
Browse files Browse the repository at this point in the history
  • Loading branch information
Azadehkhojandi authored May 23, 2019
1 parent fea2222 commit d02caeb
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions databricks-api/azure-pipelines-ci-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,19 @@ trigger:

variables:
WORKING_DIR: 'databricks-api'
IMAGE_NAME: 'microsoft.databricks.api:$(Build.SourceVersion)'
IMAGE_NAME: 'public/azure-databricks/api:$(Build.SourceVersion)'
#ACR_NAME - set this value in AzureDevops variables
#AZURE_SUBSCRIPTION - set this value in AzureDevops variables
pool:
vmImage: 'Ubuntu-16.04'

steps:



- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
architecture: 'x64'


- script: echo $(IMAGE_NAME)

- script: pip install -r requirements-dev.txt && pip install -r requirements.txt
workingDirectory: $(WORKING_DIR)
displayName: 'Install requirements'
Expand All @@ -39,12 +34,9 @@ steps:
workingDirectory: $(WORKING_DIR)
displayName: 'Run lint tests'

- script: echo $(IMAGE_NAME)

- task: AzureCLI@1
displayName: Push to Azure Container Registry [dbricks_client]
inputs:
azureSubscription: $(AZURE_SUBSCRIPTION)
workingDirectory: $(WORKING_DIR)
scriptLocation: inlineScript
failOnStandardError: false
inlineScript: az acr build --registry $(ACR_NAME) --image $(IMAGE_NAME) .
- script: docker build -t $(IMAGE_NAME) . # add options to this command to meet your needs
workingDirectory: $(WORKING_DIR)
displayName: 'Docker build'

0 comments on commit d02caeb

Please sign in to comment.