Skip to content
Snippets Groups Projects
Commit 53cc9c51 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

CI: only build releases for burst, calibration, inspiral. set max retries for latest to 2

parent 204c7a09
No related branches found
No related tags found
No related merge requests found
Pipeline #200348 failed
......@@ -285,8 +285,8 @@ docker:el7:
except:
- /gstlal-([a-z]+-|)[0-9]+\.[0-9]+\.[0-9]+-v[0-9]+/
docker-release:el7:
stage: docker
docker:release:gstlal-inspiral:el7:
stage: docker-release-gstlal-inspiral
before_script: []
script:
# add RPMs to directory to pass to docker
......@@ -305,11 +305,57 @@ docker-release:el7:
needs:
- level0:rpm:gstlal
- level1:rpm:gstlal-ugly
- level2:rpm:gstlal-calibration
- level2:rpm:gstlal-inspiral
only:
- /gstlal-inspiral-[0-9]+\.[0-9]+\.[0-9]+-v[0-9]+/
docker:release:gstlal-burst:el7:
stage: docker-release-gstlal-burst
before_script: []
script:
# add RPMs to directory to pass to docker
- mkdir rpms
# Copy rpms to new container.
- mv rpmbuild/RPMS/x86_64/*.rpm rpms
# Clear out the old rpmbuild directory
- rm -rf rpmbuild*
# Build the container:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build --pull -t $DOCKER_BRANCH --file .gitlab-ci.Dockerfile.e7 .
- docker push $DOCKER_BRANCH
needs:
- level0:rpm:gstlal
- level1:rpm:gstlal-ugly
- level2:rpm:gstlal-burst
only:
- /gstlal-([a-z]+-|)[0-9]+\.[0-9]+\.[0-9]+-v[0-9]+/
- /gstlal-burst-[0-9]+\.[0-9]+\.[0-9]+-v[0-9]+/
docker:release:gstlal-calibration:el7:
stage: docker-release-gstlal-calibration
before_script: []
script:
# add RPMs to directory to pass to docker
- mkdir rpms
# Copy rpms to new container.
- mv rpmbuild/RPMS/x86_64/*.rpm rpms
# Clear out the old rpmbuild directory
- rm -rf rpmbuild*
# Build the container:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build --pull -t $DOCKER_BRANCH --file .gitlab-ci.Dockerfile.e7 .
- docker push $DOCKER_BRANCH
needs:
- level0:rpm:gstlal
- level1:rpm:gstlal-ugly
- level2:rpm:gstlal-calibration
only:
- /gstlal-calibration-[0-9]+\.[0-9]+\.[0-9]+-v[0-9]+/
latest_image:
stage: docker-latest
......@@ -323,4 +369,4 @@ latest_image:
- docker tag $DOCKER_BRANCH $DOCKER_LATEST
- docker push $DOCKER_LATEST
retry:
max: 3
max: 2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment