Skip to content
Snippets Groups Projects
Commit fb92d4ac authored by Stephan Schulz's avatar Stephan Schulz
Browse files

add example GitLab package upload script

parent ab01f504
No related branches found
No related tags found
No related merge requests found
Pipeline #57584 passed
#!/bin/bash
PRIVATE_TOKEN=j5NU4Guz_op67gz1SJ-P
# from https://docs.gitlab.com/ee/user/packages/generic_packages/
set -x
ID=SLMS%2Floadbalancing
ID=1403
PKGNAME=ALL-release
PKGVERSION=0.9.0
FNAME=$1
# In CI
# 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file file.txt ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/my_package/0.0.1/file.txt'
curl --header "PRIVATE-TOKEN: $PRIVATE_TOKEN"\
--upload-file $(pwd)/$FNAME\
https://gitlab.version.fz-juelich.de/api/v4/projects/$ID/packages/generic/$PKGNAME/$PKGVERSION/$FNAME
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment