Skip to content

Commit

Permalink
Set up CI with Azure Pipelines
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
d3vzer0 committed Jul 23, 2020
1 parent 958a05f commit 545536b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 545536b

Please sign in to comment.