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