diff --git a/README.md b/README.md index 51904c2..3a3f921 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ This will: * Configure Nexus through the API. * Create the `adhoc-package` repository. + * Create the `apt-hosted` repository. * Configure the NuGet `nuget-hosted` repository to accept pushing with an API key. * Configure Nexus through Groovy scripts. * Create the `npm-group`, `npm-hosted` and `npmjs.org-proxy` repositories. diff --git a/provision/provision-nexus.sh b/provision/provision-nexus.sh index 02dce78..4a3d8e3 100644 --- a/provision/provision-nexus.sh +++ b/provision/provision-nexus.sh @@ -191,6 +191,34 @@ http \ EOF +# create the apt-hosted apt repository. +# see https://help.sonatype.com/repomanager3/formats/apt-repositories +http \ + --check-status \ + --auth "$api_auth" \ + POST \ + https://$nexus_domain/service/rest/v1/repositories/apt/hosted \ + <