Skip to content

Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab FOSS
GitLab FOSS
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Security & Compliance
    • Security & Compliance
    • Dependency List
  • Packages
    • Packages
    • Container Registry
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #38542

You need to sign in or sign up before continuing.
Closed
Open
Opened Sep 28, 2017 by Mark Pundsack@markpundsack💬0 of 2 tasks completed0/2 tasks
  • Report abuse
  • New issue
Report abuse New issue

Add deploy strategies to Auto DevOps settings

Description

We already provide some ways for people to control the configuration of their application. With Auto DevOps, you can use our default Helm chart, or you can provide your own. Auto DevOps listens to variables like PRODUCTION_REPLICAS to set the number of pods to spin up when deploying to production. We should explore more configuration options, and make these first-class parts of GitLab.

Proposal

Add an Application Control Panel to project settings to tune the behavior of the application. Choices will work for Auto DevOps out of the box, but could be leveraged by any .gitlab-ci.yml file that uses the same variables. This should be mentioned in the panel, linking to documentation that explains what the settings are for.

The settings should be in the new foldable section introduced in https://gitlab.com/gitlab-org/gitlab-ce/issues/43466.

In this iteration, we need radio buttons showing two possible options as deploy strategies:

  • Continuous deployment to production
  • Automatic deployment to staging, manual deployment to production
  1. If you choose "Continuous deployment to production" (default), STAGING_ENABLED and INCREMENTAL_ROLLOUT_ENABLED variables will be unset.
  2. If you choose "Automatic deployment to staging, manual deployment to production", STAGING_ENABLED and INCREMENTAL_ROLLOUT_ENABLED will be set.

Designs

  • "Domain" and "Deployment strategy" always shows up if "Enable Auto DevOps" or "Instance default" is on. Otherwise, they are collapsed. The
  • In "Deployment strategy" section, it always has "Deployment strategy needs a domain name to work correctly." message to let users know it cannot work if there is no domain name.
Enable Auto DevOps / Instance default Disable Auto DevOps
01 02

Note: We won't place any "description" text below the deployment options as they are pretty self explanatory. The help ? icon should link as follows:

Continuous deployment to production -> https://docs.gitlab.com/ee/topics/autodevops/#auto-deploy

Automatic deployment to staging, manual deployment to production -> https://docs.gitlab.com/ce/ci/environments.html#manually-deploying-to-environments

Edited Jun 01, 2018 by Taurie Davis

Related issues

  • Discussion
  • Designs
Assignee
Assign to
11.0
Milestone
11.0
Assign milestone
Time tracking
None
Due date
None
12
Labels
CI/CD [DEPRECATED] Category:Auto DevOps Deliverable UX ready [DEPRECATED] application control panel devops::configure direction feature frontend meta release post item workflow::In review
Assign labels
  • View project labels
Reference: gitlab-org/gitlab-foss#38542