Skip to content
Snippets Groups Projects
Commit c93c5789 authored by Riccardo Boero's avatar Riccardo Boero :innocent:
Browse files

Fixing tag activated package registration

parent 23f4f0a4
No related branches found
No related tags found
No related merge requests found
......@@ -2,11 +2,11 @@ image: julia:latest
stages:
- register
- deploy_release # Rename this stage to avoid conflict with the deploy stage in .gitlab-ci.yml
- deploy_release
variables:
GITLAB_REGISTRY_USER: $GITLAB_REGISTRY_USER
GITLAB_REGISTRY_PASS: $GITLAB_REGISTRY_PASS
GITLAB_REGISTRY_USER: $GITLAB_REGISTRY_USER # GitLab registry user (CI/CD variable)
GITLAB_REGISTRY_PASS: $GITLAB_REGISTRY_PASS # GitLab registry password/token (CI/CD variable)
# Register the package in the registry using Registrator's RegService
register:
......@@ -21,14 +21,14 @@ register:
branch="main", # The branch you want to register from
user=ENV["GITLAB_REGISTRY_USER"], # Username from GitLab CI/CD environment variable
token=ENV["GITLAB_REGISTRY_PASS"], # Access token from GitLab CI/CD environment variable
registry="https://git.nilu.no/julia/registry" # URL of your GitLab-hosted registry
)'
registry="https://git.nilu.no/julia/registry" # URL of your GitLab-hosted registry
)'
only:
- tags
# Deploy the package (tag-based release)
deploy_release:
stage: deploy_release # Using the new stage name to avoid conflicts
stage: deploy_release
script:
- julia --project=. -e '
using Pkg;
......@@ -39,3 +39,4 @@ deploy_release:
only:
- tags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment