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.
- Image is based on official Alpine Linux based golang image
- Additional installed packages:
- git
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
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.
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.
docker build -t starwarsfan/github-release-uploader:latest .