Skip to content

Add marmite template to GitLab's built-in project templates #216

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

Open
luxedo opened this issue Jan 27, 2025 · 4 comments
Open

Add marmite template to GitLab's built-in project templates #216

luxedo opened this issue Jan 27, 2025 · 4 comments

Comments

@luxedo
Copy link

luxedo commented Jan 27, 2025

GitLab has several built-in project templates and they are open for contribution.

Perhaps integrating it with GitLab Pages and a simple CI/CD pipeline would make it very easy to build and host a marmite project.

If that's something interesting I'd be glad to take a look. I'm not familiar with marmite yet so I'd need some help specifying the requirements and the structure for this template.

@rochacbruno
Copy link
Owner

Great idea, the starting point can be this repo https://github.com/rochacbruno/blog/blob/main/.github/workflows/main.yaml

@luxedo
Copy link
Author

luxedo commented Jan 27, 2025

Nice! I'll take a look!

@luxedo
Copy link
Author

luxedo commented Feb 2, 2025

I just created a repo from https://github.com/rochacbruno/blog and changed the pipeline to GitLab's CI/CD. Here's the new repo and the .gitlab-ci.yml file:

# The Docker image that will be used to build your app
image: rust:1.84.1
# Functions that should be executed before the build script is run
before_script:
  - "cargo install marmite  # 🫙"
pages:
  script:
    - "marmite . public --debug  # 🏗️"
  artifacts:
    paths:
      # The folder that contains the files to be exposed at the Page URL
      - public
  rules:
    # This ensures that only pushes to the default branch will trigger
    # a pages deploy
    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH

The rendered template blog is here: https://luxedo.gitlab.io/marmite/

As is, this GitLab template can be forked and will work fine. In order to include this in the GitLab's project template list there's still some things to do:

  1. Update README.md to match the GitLab workflow
  2. Create a PR to include the new template
  3. Add template logo and description

Before proceeding with this process @rochacbruno would you like to own the GitLab's marmite template repo? I can also create an organization to make it neater. What do you think?

@rochacbruno
Copy link
Owner

You can keep under your username and give me permissions? I use the same username there.

I am also ok with the idea of an org, what works better for you?

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

No branches or pull requests

2 participants