Make deploy to production manual in GitLab pipeline

This is also known as CD (from CI/CD).
For this we can modify previous pipeline example, and add a when statement to the stage:

deploy to production:
    stage: deploy production
    when: manual # enable manual deployment of this stage
    environment: production
    extends: .deploy