Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

d
d

Posted on

Manual Workflows in GitLab

GitLab's manual workflows offers users the control to decide when the workflow should commence. The workflow is often defined in a gitlab-ci.yml file. The simplest template looks like the following.

stages:

  • deploygit_status:stage: deployscript:
    • echo "hello"
    • ls
    • pwd
    • git pull origin main
    • git statuswhen: manualallow_failure: true
  • stages: Defines the stages in our CI/CD pipeline. In this scenario, we have a single stage named "deploy," signifying the final phase before deployment.
  • git_status: The identifier for our job, customizable to suit our project's needs.
  • script: Specifies the commands to be executed by GitLab upon job activation
  • when: manual: mandates manual intervention before proceeding 
  • allow_failure: true: Provides leniency in the event of job failure

Once the above changes have been committed, head over to the pipelines section. Build > Pipelines and click on the "Play" button adjacent to the job.

Image description


This can be used to create a release for a project or for any other manual inspecting of the project such as running a lighthouse evaluation on a reactjs project.

This article is also published inhttps://parkerrobert.medium.com/manual-workflows-in-gitlab-d6addb70d389

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

A software engineer trying to do good by learning in public. Check out medium: https://parkerrobert.medium.com/
  • Education
    Self taught
  • Work
    Software Engineer
  • Joined

More fromd

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp