Skip to content

feat: add support for GitLab CI again #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SimonJasansky
Copy link

We want to support GitLab CI in Substrate again. This PR implements the template for the .gitlab-ci.yml file.

Implementation Notes

  • GitLab runners (hosted by GitLab) do not allow to run in privileged mode. Thus, it's not possible to use devcontainer up directly, as we do in CI on GitHub.
    • There is a stage build-dev-container that builds and pushes the image to GitLab's container registry, and the stage test then uses that image.
  • Dependencies are not installed using the postStartCommand from the .devcontainer configuration directly, but by using uv sync within the started devcontainer in the test stage. It's not ideal to have this code duplicated, but I could not find a good way to directly use the devcontainer command.

Open TODOs

Have stages for:

  • lint & test
  • build
  • publish

@SimonJasansky SimonJasansky self-assigned this May 2, 2025
@SimonJasansky SimonJasansky requested a review from sinopeus May 6, 2025 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant