Skip to content

Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
GitLab CI Yml - Deprecated
GitLab CI Yml - Deprecated
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 11
    • Merge Requests 11
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Security & Compliance
    • Security & Compliance
    • Dependency List
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLab CI Yml - DeprecatedGitLab CI Yml - Deprecated
  • Merge Requests
  • !160

Merged
Opened Apr 25, 2018 by Mayra Cabrera@mayra-cabrera⚡
  • Report abuse
Report abuse

Use variables to define deploy policy for staging and production environments

What does this MR do?

  • Changes production that is non-manual, to be enabled when $STAGING_ENABLED is not set.

  • Changes staging that is non-manual, to be enabled when $STAGING_ENABLED is set.

  • Add production_manual to be manual, and enabled when $STAGING_ENABLED is set.

Screenshots

When $STAGING_ENABLEDis set

Screen_Shot_2018-05-01_at_11.38.47_AM

When $STAGING_ENABLEDis not set

Screen_Shot_2018-05-01_at_11.34.20_AM

Issues related

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/38549

Edited May 01, 2018 by Mayra Cabrera
  • Discussion 14
  • Commits 3
  • Pipelines 3
  • Changes 1
Assignee
Assign to
10.8
Milestone
10.8
Assign milestone
Time tracking
3
Labels
CI/CD [DEPRECATED] Deliverable auto devops
Assign labels
  • View project labels
Reference: gitlab-org/gitlab-ci-yml!160

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.