Skip to content
Snippets Groups Projects
Commit 4047456c authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: avoid clean registry script

parent 48cf0de3
Branches
No related tags found
No related merge requests found
...@@ -507,7 +507,12 @@ clean: ...@@ -507,7 +507,12 @@ clean:
- docker-new - docker-new
when: always when: always
script: script:
## remove the pipeline specific export from eicweb if needed - apk add curl
- for id in 66 68 69 80 83 91 92 ; do
for tag in ${INTERNAL_TAG} ${INTERNAL_TAG}-default ${INTERNAL_TAG}-nightly ; do
curl --request DELETE --header "PRIVATE-TOKEN: ${REG_CLEANUP_TOKEN}" ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/registry/repositories/${id}/tags/${tag} ;
done ;
done
- echo "Cleaning up pipeline specific docker tags if needed" - echo "Cleaning up pipeline specific docker tags if needed"
- bash ./gitlab-ci/cleanup_registry.sh -i debian_base -r 66 ${INTERNAL_TAG} - bash ./gitlab-ci/cleanup_registry.sh -i debian_base -r 66 ${INTERNAL_TAG}
- bash ./gitlab-ci/cleanup_registry.sh -i ubuntu_base -r 80 ${INTERNAL_TAG} - bash ./gitlab-ci/cleanup_registry.sh -i ubuntu_base -r 80 ${INTERNAL_TAG}
...@@ -534,8 +539,7 @@ clean_unstable_mr: ...@@ -534,8 +539,7 @@ clean_unstable_mr:
variables: variables:
API: "https://eicweb.phy.anl.gov/api/v4" API: "https://eicweb.phy.anl.gov/api/v4"
script: script:
- apt update -q - apk add curl jq
- apt install -yq jq
- for registry in - for registry in
eicweb eicweb
eicweb.phy.anl.gov:4567/eic/juggler eicweb.phy.anl.gov:4567/eic/juggler
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment