this post was submitted on 07 Aug 2024
5 points (85.7% liked)

gitlab

96 readers
8 users here now

Discussion surrounding the Gitlab product (both CE and EE.)

founded 1 year ago
MODERATORS
 

Support for GitHub actions

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Chocrates 1 points 1 month ago (1 children)

I skimmed it and I am not grokking how it is different than their current automation.

[โ€“] bluey 1 points 1 month ago

Current implementations would be shell(sh/pwsh/...) command run defined in yaml.

The proposed implementation will allow you to break down your pipeline into composable steps and reuse github actions within the same build job. Without this, you will have to use DIND to run these steps.

# Example job using action
my-job:
  run:
    - name: greet_user
      step: gitlab.com/gitlab-org/ci-cd/runner-tools/echo-step@v1
      inputs:
        echo: hello $[[ GITLAB_USER_LOGIN ]]
    - name: greet_user_again
      action: mikefarah/yq@master
      inputs:
        cmd: echo ["${{ steps.greet_user.outputs.echo }} again!"] | yq .[0]