Skip to content
Snippets Groups Projects

feat: use official docker image

Merged Wouter Deconinck requested to merge use-official-docker-image into master
All threads resolved!
Compare and Show latest version
1 file
+ 6
5
Compare changes
  • Side-by-side
  • Inline
+ 6
5
@@ -516,7 +516,7 @@ clean_internal_tag:
clean_unstable_mr:
extends: .docker
stage: config
stage: finalize
dependencies:
- version
tags:
@@ -532,15 +532,16 @@ clean_unstable_mr:
--filter=reference=${registry}/*:unstable-mr*
--format "{{.ID}} {{.Repository}} {{.Tag}}" ;
done
| sed -n 's/unstable-mr-([0-9]+)-([0-9]+)(-nightly){0,1}$/& \1 \2/'
| sed -n -E 's/unstable-mr-([0-9]+)-([0-9]+)(-nightly|-default){0,1}$/& \1 \2/p'
| while read id repository tag project_id merge_request_iid ; do
state=$(curl --silent -L
"${CI_API_V4_URL}/projects/${project_id}/merge_requests?scope=all&state=opened&per_page=100"
"${CI_API_V4_URL}/projects/${project_id}/merge_requests?scope=all&state=merged&per_page=100"
"${CI_API_V4_URL}/projects/${project_id}/merge_requests?scope=all&state=closed&per_page=100"
| jq -r ".[]|select(.iid == ${merge_request_iid})|.state") ;
echo "Image $repository:$tag is $state (project ${project_id}, iid ${merge_request_iid})." ;
[ "$state" == "merged" ] || echo docker rmi $repository:$tag ;
[ "$state" == "closed" ] || echo docker rmi $repository:$tag ;
echo "Image $repository:$tag is ${state:-undetermined} (project ${project_id}, iid ${merge_request_iid})." ;
[ "$state" == "merged" ] && docker rmi $repository:$tag ;
[ "$state" == "closed" ] && docker rmi $repository:$tag ;
done
- docker system prune --filter until=24h --force
- docker images
Loading