From 9a777a0fb2e642c6efb327c18dda9f2eec1b2357 Mon Sep 17 00:00:00 2001 From: Justin Paul Date: Sat, 28 Jan 2023 11:28:36 -0500 Subject: [PATCH] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..ca45971 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,35 @@ +# Docker +# Build a Docker image +# https://docs.microsoft.com/azure/devops/pipelines/languages/docker + +trigger: +- master + +resources: +- repo: self + +variables: + tag: '$(Build.BuildId)' + +stages: +- stage: Build + displayName: Build image + jobs: + - job: Build + displayName: Build + pool: + vmImage: ubuntu-latest + steps: + - task: Docker@2 + displayName: Build an image + inputs: + command: build + dockerfile: '$(Build.SourcesDirectory)/Dockerfile' + tags: | + $(tag) +- task: Docker@2 + inputs: + containerRegistry: 'recklessop-docker-hub' + repository: 'zerto-exporter' + command: 'buildAndPush' + Dockerfile: '**/Dockerfile' \ No newline at end of file