Skip to content
Snippets Groups Projects

Upload file to Gitlab Generic Packages with curl and Invoke-WebRequest

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Leon Schmidt

    Example file name: example.txt

    Edited
    upload.ps1 381 B
    upload.sh 198 B
    curl --insecure --header "PRIVATE-TOKEN: <token>" \
      --upload-file example.txt \
      "https://git.leon.wtf/api/v4/projects/<project-id>/packages/generic/<package-name>/<package-version>/example.txt"
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment