Skip to content

Commit

Permalink
Merge pull request #13 from CybercentreCanada/build_path
Browse files Browse the repository at this point in the history
build based on build_type
  • Loading branch information
cccs-rs authored Jul 27, 2021
2 parents 283d254 + b3ff157 commit 499471e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM cccs/assemblyline-v4-service-base:latest AS base
ARG branch=latest
FROM cccs/assemblyline-v4-service-base:$branch AS base

ENV SERVICE_PATH suricata_.suricata_.Suricata
ENV SURICATA_VERSION 6.0.3
Expand Down
2 changes: 1 addition & 1 deletion pipelines/azure-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ stages:
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 -t cccs/assemblyline-service-suricata:$TAG -t cccs/assemblyline-service-suricata:$BUILD_TYPE .
docker build --build-arg version=$TAG --build-arg branch=$BUILD_TYPE -t cccs/assemblyline-service-suricata:$TAG -t cccs/assemblyline-service-suricata:$BUILD_TYPE .
docker push cccs/assemblyline-service-suricata --all-tags
displayName: Deploy to Docker Hub

0 comments on commit 499471e

Please sign in to comment.