Skip to content

starwarsfan/github-release-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

github-release-uploader

GitHub version HitCount Docker Stars Docker Pulls ImageLayers

Dockerized version of the tool github-release. With this tool you can upload respectively deploy any kind of artifacts to a release tag on GitHub.

Facts

  • Image is based on official Alpine Linux based golang image
  • Additional installed packages:
    • git

Upload Artifacts to GitHub

Preparation

Just place the file which should be uploaded into reachable directory. This directory will be mounted into the container.

Additionally you need a GitHub access token, which should be placed in the environemt variable GITHUB_TOKEN:

export GITHUB_TOKEN=1234568790abcdef

Available commands

To see a list of available commands, simply run a container without any further arguments or call explicitly the github-release tool with the option --help:

docker run --rm -it starwarsfan/github-release-uploader:latest github-release --help

Regarding detailed usage description, please refer to github-release GitHub page.

Perfom GitHub upload

To do an upload the usage schema is as follows:

docker run \
    --rm \
    -it \
    -e GITHUB_TOKEN=${GITHUB_TOKEN} \
    -v <folder-with-files-to-upload>:/filesToUpload \
    starwarsfan/github-deployer:latest \
    github-release upload \
        --user <GitHub-user-or-organization-name> \
        --repo <GitHub-repo> \
        --tag <tag-on-GitHub-repo> \
        --name <name-of-file-after-upload> \
        --file /filesToUpload/<file-to-upload>

All other commands of github-release can be used the same way.

How to build the image

docker build -t starwarsfan/github-release-uploader:latest .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published