Skip to content

Simple PHP Script and Docker Image for uploading composer packages to a Nexus Respository.

License

Notifications You must be signed in to change notification settings

jbuncle/composer-nexus-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Composer Nexus Upload/Push

Simple PHP Script and Docker Image for uploading composer packages to a Nexus Respository.

Usage

Docker

docker run -it -v $(pwd):/workspace jbuncle/composer-nexus-upload:latest nexus-upload \
         --repository=https://example.nexus.repo.com/repository/composer-repo/ \
         --username=publisher-user \
         --password=$NEXUS_PASS \
         --version=$CI_COMMIT_TAG

Inline Bash

php <(curl -s https://raw.githubusercontent.com/jbuncle/composer-nexus-upload/master/nexus-upload.php) \
         --repository=https://example.nexus.repo.com/repository/composer-repo/ \
         --username=publisher-user \
         --password=$NEXUS_PASS \
         --version=$CI_COMMIT_TAG

CLI Arguments

Argument Description
repository The nexus composer repository URL
username The nexus user name
password The nexus user password
version The composer version

Files exclusion

To exclude files from the uploaded zip#

"extra": {
        "nexus-upload": {
            "ignore": [
                "node_modules/",
                "*.css.map",
                "*.ts",
                "*.zip",
                "webpack.config.js",
                "*.json",
                "*.less"
            ]
        }
    }

About

Simple PHP Script and Docker Image for uploading composer packages to a Nexus Respository.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published