Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Add build type switch to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-douglass committed Oct 19, 2020
1 parent b0aca78 commit f2ccc4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipelines/azure-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ stages:
- 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-virustotal-dynamic:$TAG -t cccs/assemblyline-service-virustotal-dynamic:latest .
if [[ "$TAG" == *stable* ]]; then export BUILD_TYPE=stable; else export BUILD_TYPE=latest; fi
docker build --build-arg version=$TAG -t cccs/assemblyline-service-virustotal-dynamic:$TAG -t cccs/assemblyline-service-virustotal-dynamic:$BUILD_TYPE .
docker push cccs/assemblyline-service-virustotal-dynamic
displayName: Deploy to Docker Hub

0 comments on commit f2ccc4e

Please sign in to comment.