diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3b6d0e8..49a2134 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,6 +1,31 @@ -pool: - vmImage: 'ubuntu-16.04' -container: 'rust:latest' -steps: - - script: cargo check --all - displayName: Run check \ No newline at end of file +stages: + - stage: Check + jobs: + - job: Check + displayName: Sanity 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