Commit 3b2ae700 authored by Henrik tom Wörden's avatar Henrik tom Wörden

ci

parent 954a5ab5
......@@ -22,6 +22,7 @@
#
variables:
CI_REGISTRY_IMAGE: $CI_REGISTRY/caosdb-pylib-testenv
# When using dind service we need to instruct docker, to talk with the
# daemon started inside of the service. The daemon is available with
# a network connection instead of the default /var/run/docker.sock socket.
......@@ -84,3 +85,19 @@ trigger_build:
-F token=$TOKEN
-F "variables[WEBUI]=$CI_COMMIT_REF_NAME"
-F ref=master https://gitlab.indiscale.com/api/v4/projects/14/trigger/pipeline
build-test:
stage: setup
script:
- echo $TRIGGERED_BY
- echo $MYSQLBACKEND
- REFTAG=$CI_COMMIT_REF_NAME
- echo $PYLIB
- cd test/docker
- docker login -u testuser -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# use here general latest or specific branch latest...
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build
--cache-from $CI_REGISTRY_IMAGE:latest
-t $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:latest
FROM debian:latest
RUN apt-get update && \
apt-get install firefox-esr pylint -y
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