From cad88434ff26c973f95831087f843a64491de826 Mon Sep 17 00:00:00 2001 From: Adam <59840963+cccs-douglass@users.noreply.github.com> Date: Mon, 19 Oct 2020 14:07:05 -0400 Subject: [PATCH] Add build type switch to pipeline --- pipelines/azure-build.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pipelines/azure-build.yaml b/pipelines/azure-build.yaml index 9a931b4..931f821 100644 --- a/pipelines/azure-build.yaml +++ b/pipelines/azure-build.yaml @@ -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