gitlabcontinuous-deploymentgitlab-cicontinuous-deliverygitlab-ci-runner

GitLab CI Start job manually (deployment)


Is it possible to mark gitlab ci jobs to start manually?

I need it for deploying application but I want to decide if it's going to be deployed


Solution

  • This has changed since the first answer has been posted. Here's the link to the original Gitlab Issue. It is now supported to do something like

    production:
      stage: deploy
      script: run-deployment $OMNIBUS_GITLAB_PACKAGE
      environment: production
      when: manual
    

    Note the when: manual attribute. The UI updates itself to provide a way for users to trigger the job.