Skip to content

Commit

Permalink
Merge pull request #1 from cccs-douglass/patch-1
Browse files Browse the repository at this point in the history
Add build type switch to pipeline
  • Loading branch information
cccs-douglass authored Oct 19, 2020
2 parents fcdec76 + cad8843 commit f22cb87
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-deobfuscripter:$TAG -t cccs/assemblyline-service-deobfuscripter: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-deobfuscripter:$TAG -t cccs/assemblyline-service-deobfuscripter:$BUILD_TYPE .
docker push cccs/assemblyline-service-deobfuscripter
displayName: Deploy to Docker Hub

0 comments on commit f22cb87

Please sign in to comment.