Skip to content

Instantly share code, notes, and snippets.

View Folami95's full-sized avatar

Samuel Adesoye Folami95

View GitHub Profile
@yoranvanoirschot
yoranvanoirschot / nexus-to-github-packages.sh
Created April 19, 2023 09:05
Migrate a Nexus repository to GitHub packages
sourceServer=https://...
sourceRepo=
sourceUser=
sourcePassword=
targetRepositoryUrl=https://maven.pkg.github.com/[owner]/[repository]
targetRepositoryId=
filters=() # Grab only the packages specificed in the filter or leave the variable blank to grab everything
logfile=$sourceRepo-backup.log
outputFile=$sourceRepo-artifacts.txt