Build the docker image in Azure

This commit is contained in:
Roey Darwish Dror 2019-08-01 09:06:11 +03:00
parent ed980a3d76
commit a56ed3752b

View File

@ -1,6 +1,31 @@
pool: stages:
vmImage: 'ubuntu-16.04' - stage: Check
container: 'rust:latest' jobs:
steps: - job: Check
- script: cargo check --all displayName: Sanity Check
displayName: Run check pool:
vmImage: 'ubuntu-16.04'
container: 'rust:latest'
steps:
- script: cargo check --all
displayName: Run check
- stage: Build
jobs:
- job: BuildDocker
displayName: Build Docker Image
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: Docker@2
displayName: Login to Dockerhub
inputs:
command: login
containerRegistry: Dockerhub
- task: Docker@2
displayName: Build and Push
inputs:
command: buildAndPush
repository: darwish/alma
tags: |
latest