Skip to content

Commit

Permalink
Merge pull request #11 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 c0fe1c6 + ecf922e commit 8bf218c
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
ARG branch=latest
FROM cccs/assemblyline-v4-service-base:$branch

ENV SERVICE_PATH avclass_.AVclass

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,7 +25,7 @@ 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-avclass:$TAG -t cccs/assemblyline-service-avclass:$BUILD_TYPE .
docker build --build-arg version=$TAG --build-arg branch=$BUILD_TYPE -t cccs/assemblyline-service-avclass:$TAG -t cccs/assemblyline-service-avclass:$BUILD_TYPE .
displayName: Build containers
- script: |
docker run -v `pwd`/test/:/opt/al_service/test/ cccs/assemblyline-service-avclass:latest bash -c 'pip install -U -r test/requirements.txt; pytest'
Expand Down

0 comments on commit 8bf218c

Please sign in to comment.