From 5a85a2186aa2cdaf2ec3822a92686af828e49e16 Mon Sep 17 00:00:00 2001 From: Varac <varac@varac.net> Date: Mon, 1 Nov 2021 13:08:32 +0000 Subject: [PATCH] Apply 2 suggestion(s) to 1 file(s) --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 63f697610..4f107b738 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -697,7 +697,7 @@ wordpress-taiko: # === -# Terminates a droplet and deletes a container once the MR for it is merged +# Terminates a droplet and deletes the branch container image once the MR for it is merged terminate-droplet: # Stage has to be the same as the step that created the VPS # https://docs.gitlab.com/ee/ci/environments.html#automatically-stopping-an-environment @@ -710,7 +710,7 @@ terminate-droplet: - *debug_information # Delete droplet - python3 -c "import greenhost_cloud; greenhost_cloud.terminate_droplets_by_name(\"^${CI_COMMIT_REF_SLUG}\")" - # Delete container if one was created + # Delete container image if one was created - "if [ \"$CI_CONTAINER_TAG\" != \"master\" ]; then curl --request DELETE --header \"PRIVATE-TOKEN: ${CLEANER_TOKEN}\" https://open.greenhost.net/api/v4/projects/openappstack%2Fopenappstack/registry/repositories/2/tags/${CI_CONTAINER_TAG}; fi" environment: name: $CI_COMMIT_REF_SLUG -- GitLab