Verified Commit ec337c50 authored by Adam Mercer's avatar Adam Mercer
Browse files

restructure container registry layout

for nightly containers use:
containers.ligo.org/lscsoft/lalsuite/lalsuite:nightly-${PLATFORM}

and for tags use:
containers.ligo.org/lscsoft/lalsuite/lalsuite:${VERSION}-${PLATFORM}

this will allow container cleanup to work in a more sensible way
parent 18481125
Pipeline #452773 passed with stages
in 141 minutes and 33 seconds
......@@ -1596,6 +1596,7 @@ platform:conda:macos-arm64:
image: docker:latest
variables:
DOCKER_DRIVER: overlay
IMAGE_NAME: "${CI_REGISTRY_IMAGE}/lalsuite"
stage: docker
rules:
- !reference [.skip-docker, rules]
......@@ -1604,7 +1605,6 @@ platform:conda:macos-arm64:
- !reference [.manual, rules]
script:
# build container and push to registry
- IMAGE_TAG=${CI_JOB_NAME##*:}
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build --pull -t ${IMAGE_NAME}:${IMAGE_TAG} --file ${DOCKER_FILE} .
- docker push ${IMAGE_NAME}:${IMAGE_TAG}
......@@ -1612,8 +1612,8 @@ platform:conda:macos-arm64:
.docker:nightly:
extends:
- .docker
variables:
IMAGE_NAME: "$CI_REGISTRY_IMAGE/nightly"
before_script:
- IMAGE_TAG="nightly-${CI_JOB_NAME##*:}"
rules:
- !reference [.skip-docker, rules]
- !reference [.scheduled, rules]
......@@ -1621,8 +1621,8 @@ platform:conda:macos-arm64:
.docker:tags:
extends:
- .docker
variables:
IMAGE_NAME: "$CI_REGISTRY_IMAGE/$CI_COMMIT_TAG"
before_script:
- IMAGE_TAG="${CI_COMMIT_TAG##*v}-${CI_JOB_NAME##*:}"
rules:
- !reference [.skip-docker, rules]
- !reference [.lalsuite-tag, rules]
......
Supports Markdown
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