Skip to content

Commit

Permalink
Add azure build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-sgaron committed Apr 9, 2020
1 parent 0ba8892 commit 0a229e3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pipelines/azure-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build

trigger:
tags:
include: ["v*"]

pool:
vmImage: 'ubuntu-18.04'

stages:
- stage: deploy
jobs:
- job: deploy
displayName: Deploy containers to dockerhub
variables:
- group: deployment-information
steps:
- task: Docker@2
displayName: Login to docker hub
inputs:
command: login
containerRegistry: dockerhub
- script: |
set -xv # Echo commands before they are run
export TAG=${BUILD_SOURCEBRANCH#"refs/tags/v"}
docker build --build-arg version=$TAG -t cccs/assemblyline-service-metadefender:$TAG -t cccs/assemblyline-service-metadefender:latest .
docker push cccs/assemblyline-service-metadefender
displayName: Deploy to Docker Hub

0 comments on commit 0a229e3

Please sign in to comment.