Hey!
I’m playing around with gitlab environments feature and while it’s more or less clear how to get it up and running certain UI buttons or actions make me confused to say at least. Maybe some of you have come across this before and would be able to help me?
For example, I have the following .gitlab-ci.yml
(irrelevant parts were removed)
stop_staging:
stage: deploy
image: deploy
script:
- kubectl apply -f .
environment:
name: $CI_COMMIT_REF_SLUG.example.com
action: stop
when: manual
deploy_staging:
stage: deploy
image: deploy
environment:
name: $CI_COMMIT_REF_SLUG.example.com
url: https://$CI_COMMIT_REF_SLUG.example.com
on_stop: stop_staging
when: manual
Environment gets deployed and then stopped with according buttons from UI. But, there is a couple of issues that I can’t get any relevant info in the docs.
The first one :
Where does this deploy_to
come from? Why does it feature stop_staging
? stop_staging
only stops the env, why not feature both deploy_staging
and stop_staging
then? Or only deploy_staging
since it’s actually doing the job?
The second one:
When clicking on the stop button I’m getting the following warning message even though I have the stop action defined and it works correctly.
I’m using GitlabCI via gitlab.com so I assume it’s the latest public version deployed.
Thank you for your help!
Cheers.