Sign inSign up

gofunky/readmyhub

By gofunky

•Updated almost 8 years ago

Allows you to push README.md files to the Docker Hub.

Image
1

3.4K

gofunky/readmyhub repository overview

⁠README to Docker Hub

Codacy Badge Dependabot Status CircleCI Microbadger Version Microbadger Layers Docker Pulls Orb Docs GitHub last commit GitHub License

This Docker image allows you to push README.md files to the Docker Hub.

⁠How to use?

Run it with all required parameters:

docker run --rm \
    -v /path/to/readme.md:/data/README.md \
    -e DOCKERHUB_USR=myhubuser \
    -e DOCKERHUB_PWD=myhubpassword \
    -e DOCKERHUB_ORG=myorga \
    -e DOCKERHUB_REPO=myrepo \
     gofunky/readmyhub:stable

That's it.

⁠As CircleCI orb

Define a docker-hub context with your secrets DOCKER_USR and DOCKER_PWD.

orbs:
  readmyhub: gofunky/readmyhub@volatile

workflows:
  my_workflow:
    jobs:
      - readmyhub/update:
          context: docker-hub

Check the docs⁠ for all configuration arguments.

⁠Environment variables

This image uses environment variables for configuration.

Available variablesDefault valueDescription
DOCKERHUB_USRno defaultThe Username (not mail address) used to authenticate
DOCKERHUB_PWDno defaultPassword of the DOCKERHUB_USR-user
DOCKERHUB_ORG$DOCKERHUB_USROrganisation or username for the repository
DOCKERHUB_REPOno defaultName of the repository you want to push to
README_PATH/data/README.mdPath to the README.me to push
⁠Mount the README.md

By default, if the README_PATH environment variable is not set, this image always pushes the file /data/README.md as full description to Docker Hub.

For GitHub repositories you can use -v /path/to/repository:/data/.

If your description is not named README.md mount the file directory using -v /path/to/description.md:/data/README.md.

Notice that the filename is case sensitive. If your readme is called readme.md you have to mount the file directly, not the directory

⁠Additional Information

The user you use to push the README.md need to be admin of the repository.

Tag summary

Content type

Image

Digest

Size

25.6 MB

Last updated

almost 8 years ago

docker pull gofunky/readmyhub