Skip to content

Commit

Permalink
Stop using ubuntu 18.04
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-sgaron committed Jul 29, 2021
1 parent 639fa90 commit 1394f79
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions pipelines/azure-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ trigger:
pr: none

pool:
vmImage: 'ubuntu-18.04'
vmImage: "ubuntu-20.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"}
if [[ "$TAG" == *stable* ]]; then export BUILD_TYPE=stable; else export BUILD_TYPE=latest; fi
docker build --build-arg version=$TAG --build-arg branch=$BUILD_TYPE -t cccs/assemblyline-service-metadefender:$TAG -t cccs/assemblyline-service-metadefender:$BUILD_TYPE .
docker push cccs/assemblyline-service-metadefender --all-tags
displayName: Deploy to Docker Hub
- 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"}
if [[ "$TAG" == *stable* ]]; then export BUILD_TYPE=stable; else export BUILD_TYPE=latest; fi
docker build --build-arg version=$TAG --build-arg branch=$BUILD_TYPE -t cccs/assemblyline-service-metadefender:$TAG -t cccs/assemblyline-service-metadefender:$BUILD_TYPE .
docker push cccs/assemblyline-service-metadefender --all-tags
displayName: Deploy to Docker Hub

0 comments on commit 1394f79

Please sign in to comment.