Skip to content

Commit

Permalink
ci: prune docker images after pushing to node repo
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Kwiek <maciej@isovalent.com>
  • Loading branch information
nebril committed Apr 29, 2020
1 parent 20a2883 commit c4e8407
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/clean-local-registry-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ docker push $1/cilium/cilium:$2
docker push $1/cilium/cilium-dev:$2
docker push $1/cilium/operator:$2

docker image prune -f --all --filter "until=-6h"
3 changes: 3 additions & 0 deletions test/make-images-push-to-local-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ docker tag cilium/operator:$2 $1/cilium/operator:$2
docker push $1/cilium/cilium:$2
docker push $1/cilium/cilium-dev:$2
docker push $1/cilium/operator:$2

cilium_git_version="$(cat GIT_VERSION)"
docker image prune -f --all --filter "label=cilium-sha=${cilium_git_version%% *}"

0 comments on commit c4e8407

Please sign in to comment.