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

No release to Gitlab package registry #15

Open
silvio-gratani opened this issue Apr 21, 2023 · 1 comment
Open

No release to Gitlab package registry #15

silvio-gratani opened this issue Apr 21, 2023 · 1 comment

Comments

@silvio-gratani
Copy link

Using v1.0.0

When used alongside @semantic-release/gitlab in a GitLab project only the release is created while no artifact is generated in the package registry.

Gitlab docs on installing a Composer package states that "A package in the Package Registry" is required.

Is it a bug o it has not been meant to work on Gitlab?

@christian98
Copy link

Yes, we had the same problem. We solved it by running a deploy job only on tags:

deploy:
  stage: deploy
  script:
    - 'curl --header "Job-Token: $CI_JOB_TOKEN" --data tag=$CI_COMMIT_TAG "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/composer"'
  only:
    - tags

This should create the package in the Gitlab registry as well.

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