Skip to content
Snippets Groups Projects
Verified Commit 2fc74141 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

fix registry API address

parent d46d31bd
No related branches found
No related tags found
No related merge requests found
...@@ -249,7 +249,7 @@ report-ci-image-tag: ...@@ -249,7 +249,7 @@ report-ci-image-tag:
- *debug_information - *debug_information
script: script:
- | - |
TAG_INFORMATION=$(curl https://open.greenhost.net/api/v4/projects/stackspin%2Fstackspin/registry/repositories/2/tags/${CI_COMMIT_REF_SLUG}); TAG_INFORMATION=$(curl https://open.greenhost.net/api/v4/projects/stackspin%2Fstackspin/registry/repositories/73/tags/${CI_COMMIT_REF_SLUG});
echo "Tag information: ${TAG_INFORMATION}" echo "Tag information: ${TAG_INFORMATION}"
if [ "$TAG_INFORMATION" == '{"message":"404 Tag Not Found"}' ]; then if [ "$TAG_INFORMATION" == '{"message":"404 Tag Not Found"}' ]; then
echo "CI_CONTAINER_TAG=main" > .ci.env echo "CI_CONTAINER_TAG=main" > .ci.env
...@@ -711,7 +711,7 @@ terminate-droplet: ...@@ -711,7 +711,7 @@ terminate-droplet:
# Delete droplet # Delete droplet
- python3 -c "import greenhost_cloud; greenhost_cloud.terminate_droplets_by_name(\"^${CI_COMMIT_REF_SLUG}\")" - python3 -c "import greenhost_cloud; greenhost_cloud.terminate_droplets_by_name(\"^${CI_COMMIT_REF_SLUG}\")"
# Delete container image if one was created # Delete container image if one was created
- "if [ \"$CI_CONTAINER_TAG\" != \"main\" ]; then curl --request DELETE --header \"PRIVATE-TOKEN: ${CLEANER_TOKEN}\" https://open.greenhost.net/api/v4/projects/stackspin%2Fstackspin/registry/repositories/2/tags/${CI_CONTAINER_TAG}; fi" - "if [ \"$CI_CONTAINER_TAG\" != \"main\" ]; then curl --request DELETE --header \"PRIVATE-TOKEN: ${CLEANER_TOKEN}\" https://open.greenhost.net/api/v4/projects/stackspin%2Fstackspin/registry/repositories/73/tags/${CI_CONTAINER_TAG}; fi"
environment: environment:
name: $CI_COMMIT_REF_SLUG name: $CI_COMMIT_REF_SLUG
action: stop action: stop
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment