Sign inSign up

rlister/github-get

By rlister

Updated almost 11 years ago

Grab individual files from your private github repo using token.

Image
0

10K+

rlister/github-get repository overview

github-get

Simply get a list of files from a (possibly private) github repo. You will need your github token for private repos.

Usage

Concatenate a list of files to stdout:

REPO=myorg/myrepo \
TOKEN=123 \
github-get path/to/file

You may write to local files using the syntax src:dest:

REPO=myorg/myrepo \
TOKEN=123 \
github-get \
path/to/file1:/tmp/one \
path/to/file2:/tmp/two

It is fine to mix the stdout and src:dest syntax if you wish.

Docker

Comes with Dockerfile. I build image as follows:

CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w' github-get.go
docker build -r rlister/github-get .

You can pull ready-made image from docker hub:

docker pull rlister/github-get

and run it:

docker run \
  -e REPO=myorg/myrepo \
  -e TOKEN=123 \
  rlister/github-get path/to/file1

Tag summary

Content type

Image

Digest

sha256:4d123cb1c

Size

1.5 MB

Last updated

almost 11 years ago

docker pull rlister/github-get