Commit 016c7825 authored by James Clark's avatar James Clark

Attempting to replace master CI stuff with v1.0.0, at least temporarily. ...

Attempting to replace master CI stuff with v1.0.0, at least temporarily.  Ultimately we want this to be a nightly build with 1 or two production tags
parent f5f35530
......@@ -6,20 +6,35 @@ stages:
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
docker:master:
# docker:master:
# only:
# - master@lscsoft/bayeswave
# stage: build
# script:
# - docker build --rm --no-cache -t $CI_REGISTRY_IMAGE:latest ./
# - docker push $CI_REGISTRY_IMAGE:latest
#
# test:master:
# only:
# - master@lscsoft/bayeswave
# stage: test
# script:
# - docker run -u $(id -u):$(id -g) $CI_REGISTRY_IMAGE:latest "/opt/lscsoft/bayeswave/test/test-bayeswave.sh"
docker:v1.0.0:
only:
- master@lscsoft/bayeswave
- v1.0.0@lscsoft/bayeswave
stage: build
script:
- docker build --rm --no-cache -t $CI_REGISTRY_IMAGE:latest ./
- docker push $CI_REGISTRY_IMAGE:latest
- docker build --rm --no-cache -t $CI_REGISTRY_IMAGE:production ./
- docker push $CI_REGISTRY_IMAGE:production
test:master:
test:v1.0.0:
only:
- master@lscsoft/bayeswave
- v1.0.0@lscsoft/bayeswave
stage: test
script:
- docker run -u $(id -u):$(id -g) $CI_REGISTRY_IMAGE:latest "/opt/lscsoft/bayeswave/test/test-bayeswave.sh"
- docker run -u $(id -u):$(id -g) $CI_REGISTRY_IMAGE:production "/opt/lscsoft/bayeswave/test/test-bayeswave.sh"
docker:production:
only:
......
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