Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
63492ea2
Commit
63492ea2
authored
May 12, 2022
by
Dominik Hebeler
Browse files
deleting tags from correct repository
parent
eb7c1453
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab/deployment_scripts/cleanup_tags_non_revision.sh
View file @
63492ea2
...
...
@@ -102,7 +102,7 @@ do
done
echo
""
# Delete
FPM
Tags that are in no revision
# Delete
NGINX
Tags that are in no revision
echo
"Deleting unused NGINX Tags..."
for
nginx_tag
in
${
!existing_tags_nginx[@]
}
do
...
...
.gitlab/deployment_scripts/cleanup_tags_revision.sh
View file @
63492ea2
...
...
@@ -50,6 +50,6 @@ done
for
nginx_tag
in
${
!expired_nginx_tags[@]
}
do
echo
"Deleting nginx tag
$nginx_tag
"
curl
--fail
--silent
-X
DELETE
-H
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"
$CI_API_V4_URL
/projects/
$CI_PROJECT_ID
/registry/repositories/
$
FPM
_REPOSITORY_ID
/tags/
$nginx_tag
"
curl
--fail
--silent
-X
DELETE
-H
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"
$CI_API_V4_URL
/projects/
$CI_PROJECT_ID
/registry/repositories/
$
NGINX
_REPOSITORY_ID
/tags/
$nginx_tag
"
echo
""
done
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment