Commit 5a28b27d authored by Thomas Downes's avatar Thomas Downes

Merge branch 'ci' into 'master'

Test docker build in merge requests

See merge request lscsoft/conda!3
parents bbfc078d cfa07ba5
---
image: docker:latest
stages:
- test
- build
variables:
DOCKER_DRIVER: overlay
TAG: $CI_REGISTRY_IMAGE:latest
NIGHTLY: $CI_REGISTRY_IMAGE:nightly
build:
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
test:
stage: test
only:
- schedules
- merge_requests
script:
- docker build --pull --tag test --build-arg INSTALL_PATH=/opt/conda .
build-latest:
stage: build
only:
- master
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build --no-cache --pull -t $TAG --build-arg INSTALL_PATH=/cvmfs/ligo-containers.opensciencegrid.org/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/latest .
- docker build --no-cache --pull -t $NIGHTLY -f Dockerfile-singularity .
- docker push $TAG
build-nightly:
stage: build
only:
- schedules
script:
- docker build --no-cache --pull -t $NIGHTLY -f Dockerfile-singularity .
- docker push $NIGHTLY
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