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

Fixing tag activated package registration

parent 27af9e7d
No related branches found
No related tags found
No related merge requests found
......@@ -27,25 +27,6 @@ register:
only:
- tags
register:
stage: register
script:
- apt-get update -y && apt-get install -y git # Install Git
- julia --project=. -e '
using Pkg;
Pkg.add("Registrator");
Pkg.add("RegistryTools");
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", 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
......
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