From 545536b45c9dc530ed35d6dfa7537d79e17c0934 Mon Sep 17 00:00:00 2001 From: Joey Dreijer Date: Fri, 24 Jul 2020 01:51:48 +0200 Subject: [PATCH] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..7deed79 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,33 @@ +# Docker + +# Build a Docker image +# https://docs.microsoft.com/azure/devops/pipelines/languages/docker + +trigger: +- master +- releases/* + +resources: +- repo: self + +stages: +- stage: Build + displayName: Build image + jobs: + - job: Build + displayName: Build + pool: + vmImage: 'ubuntu-latest' + steps: + - script: VERSION_TAG=`git describe --tags` && echo "##vso[task.setvariable variable=VERSION_TAG]$VERSION_TAG" + displayName: Set the tag name as an environment variable + + - task: Docker@2 + inputs: + containerRegistry: 'DockerHub Splunk' + repository: 'd3vzer0/splunk-buildtools' + command: 'buildAndPush' + Dockerfile: '**/Dockerfile' + tags: | + latest + $(VERSION_TAG)