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
b0a8a254
Commit
b0a8a254
authored
6 months ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Removing CI/Cd for package registry, too difficult to setup for the limited scope of the project
parent
3c786bbc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci-release.yml
+0
-41
0 additions, 41 deletions
.gitlab-ci-release.yml
.gitlab-ci.yml
+0
-5
0 additions, 5 deletions
.gitlab-ci.yml
with
0 additions
and
46 deletions
.gitlab-ci-release.yml
deleted
100644 → 0
+
0
−
41
View file @
3c786bbc
image
:
julia:latest
stages
:
-
register
-
deploy_release
variables
:
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)
PACKAGE_REPO
:
$CI_PROJECT_URL
# Dynamically get the package repo URL from GitLab CI's built-in variable
# Register the package in the registry using Registrator's RegisterParams and RegistryTools.register()
register
:
stage
:
register
script
:
-
apt-get update -y && apt-get install -y git
# Ensure Git is installed
-
julia --project=. -e '
using Pkg;
Pkg.add("Registrator");
using Registrator;
using RegistryTools;
package_repo = ENV["PACKAGE_REPO"];
tree_sha = readchomp(`git rev-parse HEAD`);
pkg = RegistryTools.Project("Project.toml");
reg_params = Registrator.RegisterParams(package_repo, pkg, tree_sha; registry="https://git.nilu.no/julia/registry", registry_fork="https://git.nilu.no/julia/registry", registry_deps=[], subdir="", push=true, gitconfig=Dict("user.name" => ENV["GITLAB_REGISTRY_USER"], "user.password" => ENV["GITLAB_REGISTRY_PASS"]));
RegistryTools.register(reg_params)'
only
:
-
tags
# Deploy the package (tag-based release)
deploy_release
:
stage
:
deploy_release
script
:
-
julia --project=. -e '
using Pkg;
Pkg.add("TagBot");
ENV["GITLAB_USER"] = ENV["GITLAB_REGISTRY_USER"];
ENV["GITLAB_PASS"] = ENV["GITLAB_REGISTRY_PASS"];
TagBot.tag()'
only
:
-
tags
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
0
−
5
View file @
b0a8a254
...
...
@@ -3,8 +3,6 @@ image: julia:latest
stages
:
-
documentation
-
deploy
-
register
# Declare the stage from .gitlab-ci-release.yml
-
deploy_release
# Differentiate release deploy from pages deploy
# Existing jobs for documentation and pages
build documentation
:
...
...
@@ -29,7 +27,4 @@ pages:
only
:
-
main
# Include the release-specific YAML file
include
:
-
local
:
.gitlab-ci-release.yml
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