Need advice about which tool to choose?Ask the StackShare community!

GitHub Actions

22.3K
2.5K
+ 1
27
GitLab CI

2.3K
1.6K
+ 1
75
Add tool

GitLab CI vs Github Actions: What are the differences?

Introduction: GitLab CI and GitHub Actions are both continuous integration and continuous delivery (CI/CD) platforms that help automate software development workflows. While they serve a similar purpose, they have several key differences that make each platform unique.

  1. Workflow Configuration: GitLab CI uses a YAML file called .gitlab-ci.yml to define the stages, jobs, and steps of a CI/CD pipeline. It follows a declarative approach, allowing users to specify the desired state of the pipeline. On the other hand, GitHub Actions uses YAML files called workflow files that are stored in the .github/workflows directory. It follows an imperative approach, allowing users to define the exact steps to be executed.

  2. Built-in Integration: GitLab CI is tightly integrated with the GitLab platform, providing seamless integration with other GitLab features like issue tracking, code reviews, and container registry. GitHub Actions, on the other hand, is closely integrated with GitHub, offering native integration with pull requests, issues, and the GitHub ecosystem.

  3. Parallel Execution: GitLab CI allows parallel execution of jobs by default, enabling faster CI/CD pipelines. It automatically distributes jobs across available runners, optimizing resource utilization. In contrast, GitHub Actions had a limited parallelism feature initially, but now also allows parallel execution, albeit with some limitations on the number of concurrent jobs depending on the user plan.

  4. Pricing Model: GitLab CI is part of the GitLab platform, which comes with a different pricing structure based on GitLab's plans. It offers various tiers ranging from free to enterprise editions, with different features and capabilities. GitHub Actions, on the other hand, is included in all GitHub plans, including the free tier, allowing users to benefit from its CI/CD capabilities at no additional cost.

  5. Third-Party Actions: GitHub Actions has a rich ecosystem of third-party actions available in the GitHub Marketplace. These pre-built actions provide additional functionality and integrations that can be easily added to workflows. GitLab CI also has a collection of community-contributed CI/CD templates, but the availability of pre-built actions is not as extensive as in GitHub Actions.

  6. Deployment Environments: GitLab CI allows the definition of multiple deployment environments, each representing a stage in the software delivery pipeline. It facilitates the separation of tasks and enables easy promotion of code through different environments. GitHub Actions, on the other hand, does not have a built-in feature similar to GitLab's deployment environments, making it less suitable for complex multi-stage deployment scenarios.

In summary, GitLab CI and GitHub Actions differ in their workflow configuration, integration with the respective platforms, parallel execution capabilities, pricing models, availability of third-party actions, and support for deployment environments. The choice between the two depends on the specific requirements of the project and the development team's preferences.

Advice on GitHub Actions and GitLab CI
Needs advice
on
CircleCICircleCIGitLab CIGitLab CI
and
Jenkins XJenkins X

We are a mid-size startup running Scala apps. Moving from Jenkins/EC2 to Spinnaker/EKS and looking for a tool to cover our CI/CD needs. Our code lives on GitHub, artifacts in nexus, images in ECR.

Drone is out, GitHub actions are being considered along with Circle CI and GitLab CI.

We primarily need:

  • Fast SBT builds (caching)
  • Low maintenance overhead (ideally serverless)
  • Everything as code
  • Ease of use
See more
Replies (3)
Glenn Gillen
Recommends
on
BuildkiteBuildkite

I think I've tried most of the CI tools out there at some point. It took me a while to get around to Buildkite because at first I didn't see much point given it seemed like you had to run the agent yourself. Eventually it dawned on me why this approach was more ingenious than I realised:

Running my app in a production (or production-like) environment was already a solved problem, because everything was already in some form of "everything as code". Having a test environment where the only difference was adding the Buildkite agent was a trivial addition.

It means that dev/test/prod parity is simple to achieve and maintain. It's also proven to be much easier to support than trying to deal with the problems that come with trying to force an app to fit into the nuances and constraints that are imposed by the containers/runtime of a CI service. When you completely control all of the environment the tests are running in you define those constraints too. It's been a great balance between a managed service and the flexibility of running it yourself.

And while none of my needs have hit the scale of Shopify (I saw one of their engineers speak about it at a conference once, I can't find the video now though 😞) it's good to know I can scale out my worker nodes to hundreds of thousands of workers to reduce the time it takes for my tests to run.

See more
Recommends
on
jFrogjFrog

I would recommend you to consider the JFrog Platform that includes JFrog Pipelines - it will allow you to manage the full artifact life cycle for your sbt, docker and other technologies, and automate all of your CI and CD using cloud native declarative yaml pipelines. Will integrate smoothly with all your other toolset.

See more
Estu Fardani
Recommends
on
GitLab CIGitLab CI

more configurable to setup ci/cd: * It can provide caching when build sbt, just add this section to yml file * Easy to use, many documentation

Weakness: * Need use gitlab as repository to bring more powerful configuration

See more
Decisions about GitHub Actions and GitLab CI

Buddy is one of the most easy-to-use tools for CI I ever met. When I needed to set up the pipeline I was really impressed with how easy it is to create it with Buddy with only a few moments. It's literally like: 1. Add repo 2. Click - Click - Click 3. You're done and your app is on prod :D The top feature that I've found is a simple integration with different notification channels - not only Slack (which is the one by default), but Telegram and Discord. The support is also neat - guys respond pretty quickly on even a small issue.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of GitHub Actions
Pros of GitLab CI
  • 8
    Integration with GitHub
  • 5
    Free
  • 3
    Easy to duplicate a workflow
  • 3
    Ready actions in Marketplace
  • 2
    Configs stored in .github
  • 2
    Docker Support
  • 2
    Read actions in Marketplace
  • 1
    Active Development Roadmap
  • 1
    Fast
  • 22
    Robust CI with awesome Docker support
  • 13
    Simple configuration
  • 9
    All in one solution
  • 7
    Source Control and CI in one place
  • 5
    Integrated with VCS on commit
  • 5
    Free and open source
  • 5
    Easy to configure own build server i.e. GitLab-Runner
  • 2
    Hosted internally
  • 1
    Built-in Docker Registry
  • 1
    Built-in support of Review Apps
  • 1
    Pipeline could be started manually
  • 1
    Enable or disable pipeline by using env variables
  • 1
    Gitlab templates could be shared across logical group
  • 1
    Easy to setup the dedicated runner to particular job
  • 1
    Built-in support of Kubernetes

Sign up to add or upvote prosMake informed product decisions

Cons of GitHub Actions
Cons of GitLab CI
  • 5
    Lacking [skip ci]
  • 4
    Lacking allow failure
  • 3
    Lacking job specific badges
  • 2
    No ssh login to servers
  • 1
    No Deployment Projects
  • 1
    No manual launch
  • 2
    Works best with GitLab repositories

Sign up to add or upvote consMake informed product decisions

What is GitHub Actions?

It makes it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy your code right from GitHub. Make code reviews, branch management, and issue triaging work the way you want.

What is GitLab CI?

GitLab offers a continuous integration service. If you add a .gitlab-ci.yml file to the root directory of your repository, and configure your GitLab project to use a Runner, then each merge request or push triggers your CI pipeline.

Need advice about which tool to choose?Ask the StackShare community!

Jobs that mention GitHub Actions and GitLab CI as a desired skillset
What companies use GitHub Actions?
What companies use GitLab CI?
See which teams inside your own company are using GitHub Actions or GitLab CI.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with GitHub Actions?
What tools integrate with GitLab CI?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to GitHub Actions and GitLab CI?
CircleCI
Continuous integration and delivery platform helps software teams rapidly release code with confidence by automating the build, test, and deploy process. Offers a modern software development platform that lets teams ramp.
Jenkins
In a nutshell Jenkins CI is the leading open-source continuous integration server. Built with Java, it provides over 300 plugins to support building and testing virtually any project.
Azure Pipelines
Fast builds with parallel jobs and test execution. Use container jobs to create consistent and reliable builds with the exact tools you need. Create new containers with ease and push them to any registry.
GitLab
GitLab offers git repository management, code reviews, issue tracking, activity feeds and wikis. Enterprises install GitLab on-premise and connect it with LDAP and Active Directory servers for secure authentication and authorization. A single GitLab server can handle more than 25,000 users but it is also possible to create a high availability setup with multiple active servers.
Buildkite
CI and build automation tool that combines the power of your own build infrastructure with the convenience of a managed, centralized web UI. Used by Shopify, Basecamp, Digital Ocean, Venmo, Cochlear, Bugsnag and more.
See all alternatives