Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FACT Data API Reader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACT
FACT Utils
FACT Data API Reader
Commits
c93c5789
Commit
c93c5789
authored
6 months ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Fixing tag activated package registration
parent
23f4f0a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci-release.yml
+7
-6
7 additions, 6 deletions
.gitlab-ci-release.yml
with
7 additions
and
6 deletions
.gitlab-ci-release.yml
+
7
−
6
View file @
c93c5789
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment