Commit 62ba3853 authored by Morten Brekkevold's avatar Morten Brekkevold
Browse files

Set mist-argus refspec directly from pipeline

This is better than modifying the Dockerfile each time we want to change
the version to run.
parent 056c3875
......@@ -8,6 +8,7 @@ variables:
HTTP_PORT: '8000' # The port number of the web server.
REPLICAS: '1'
ARGUS_API_URL: https://argus-api-review-khv-l3z8r5.paas2.uninett.no/api/v1
MIST_ARGUS_GIT_REF: master
stages:
- build
......@@ -21,6 +22,9 @@ build:
stage: build
only:
- branches
script:
- docker build --build-arg GIT_REF=$MIST_ARGUS_GIT_REF -t "$CI_REGISTRY_IMAGE:$CI_REGISTRY_TAG" $IMAGE_LABELS "${BUILD_DIR:-.}"
- docker push "$CI_REGISTRY_IMAGE:$CI_REGISTRY_TAG"
imagescan:
extends: .imagescan
......
FROM python:3.8
RUN pip install gunicorn
RUN pip install gunicorn git+https://scm.uninett.no/cnaas/mist-argus.git@614b379425322eb59df42e5cc270ab074fa596cb
ARG GIT_REF=master
RUN pip install git+https://scm.uninett.no/cnaas/mist-argus.git@${GIT_REF}
RUN mkdir /app
COPY settings.py /app/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment