Skip to content
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

Setup guide for use with Gitlab #666

Open
bernardcooke53 opened this issue Jul 26, 2023 · 7 comments
Open

Setup guide for use with Gitlab #666

bernardcooke53 opened this issue Jul 26, 2023 · 7 comments
Labels
docs Improvements or additions to documentation help-wanted Extra attention is required

Comments

@bernardcooke53
Copy link
Contributor

Please describe your problem. Include links to any relevant pages or files.

E.g. #659

Docs are heavily oriented towards use with GitHub - should have a dedicated page for help setting up with Gitlab (what configuration needs to be set etc).

A nice-to-have would be a "how to use in Gitlab CI" page with similar content to the advice provided for use in GitHub Actions but this can be a separate issue

@bernardcooke53 bernardcooke53 added docs Improvements or additions to documentation help-wanted Extra attention is required labels Jul 26, 2023
@BastLast
Copy link

Just finished a complete setup on a self-managed instance of gitlab anc I can confirm that working with the current documentation has been a challenge. Most of the answer are available deep in github issues comments but it would be awesome to have a better support.

@rdbisme
Copy link

rdbisme commented Sep 29, 2023

@BastLast is your changelog complete? When I run on the pipeline, I get only few commits (while locally it runs for long time). I tried setting GIT_DEPTH: 0 or GIT_STRATEGY: clone but I still get partial results.

@BastLast
Copy link

@BastLast is your changelog complete? When I run on the pipeline, I get only few commits (while locally it runs for long time). I tried setting GIT_DEPTH: 0 or GIT_STRATEGY: clone but I still get partial results.

Mine was complete after changing those settings

@rdbisme
Copy link

rdbisme commented Sep 29, 2023

@BastLast any chance I could get a snippet of the steps you're doing in the script ? I want to check if I'm missing something.

@BastLast
Copy link

semantic-release:
stage: release
image:
name: python:3.10.0
entrypoint: [""]
variables:
GIT_STRATEGY: clone
tags:
- docker
script:
- git config --global user.email $GIT_mail
- git config --global user.name $GIT_username
- git remote set-url origin https://$GIT_username:$GL_TOKEN@repourl
- git checkout main
- python -m pip --no-cache-dir install poetry twine
- poetry config (artifactory authentication)
- poetry install
- poetry run semantic-release version
- poetry run poetry build
- twine upload

i changed a few things because security / closed source software but that's pretty much the whole script

@rdbisme
Copy link

rdbisme commented Sep 29, 2023

Thanks this worked. I'll try to see if I can PR some documentation!

@bernardcooke53 bernardcooke53 pinned this issue Oct 13, 2023
@codejedi365
Copy link
Contributor

I have a working example in GitLab now, I'll start working on a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation help-wanted Extra attention is required
Projects
None yet
Development

No branches or pull requests

4 participants