Update README
This commit is contained in:
23
README.md
23
README.md
@@ -1,4 +1,5 @@
|
|||||||
# Docker Hub Description
|
# Docker Hub Description
|
||||||
|
[](https://circleci.com/gh/peter-evans/dockerhub-description/tree/master)
|
||||||
[](https://github.com/marketplace/actions/docker-hub-description)
|
[](https://github.com/marketplace/actions/docker-hub-description)
|
||||||
|
|
||||||
A GitHub action to update a Docker Hub repository description from `README.md`.
|
A GitHub action to update a Docker Hub repository description from `README.md`.
|
||||||
@@ -9,7 +10,7 @@ This is useful if you `docker push` your images to Docker Hub. It provides an ea
|
|||||||
|
|
||||||
```
|
```
|
||||||
action "Docker Hub Description" {
|
action "Docker Hub Description" {
|
||||||
uses = "peter-evans/dockerhub-description@v1.0.0"
|
uses = "peter-evans/dockerhub-description@v1.0.1"
|
||||||
secrets = ["DOCKERHUB_USERNAME", "DOCKERHUB_PASSWORD", "DOCKERHUB_REPOSITORY"]
|
secrets = ["DOCKERHUB_USERNAME", "DOCKERHUB_PASSWORD", "DOCKERHUB_REPOSITORY"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -29,7 +30,7 @@ If this is not the case, the path can be overridden with an environment variable
|
|||||||
|
|
||||||
```
|
```
|
||||||
action "Docker Hub Description" {
|
action "Docker Hub Description" {
|
||||||
uses = "peter-evans/dockerhub-description@v1.0.0"
|
uses = "peter-evans/dockerhub-description@v1.0.1"
|
||||||
secrets = ["DOCKERHUB_USERNAME", "DOCKERHUB_PASSWORD", "DOCKERHUB_REPOSITORY"]
|
secrets = ["DOCKERHUB_USERNAME", "DOCKERHUB_PASSWORD", "DOCKERHUB_REPOSITORY"]
|
||||||
env = {
|
env = {
|
||||||
README_FILEPATH = "./some-path/README.md"
|
README_FILEPATH = "./some-path/README.md"
|
||||||
@@ -53,7 +54,7 @@ action "Filter master branch" {
|
|||||||
|
|
||||||
action "Docker Hub Description" {
|
action "Docker Hub Description" {
|
||||||
needs = ["Filter master branch"]
|
needs = ["Filter master branch"]
|
||||||
uses = "peter-evans/dockerhub-description@v1.0.0"
|
uses = "peter-evans/dockerhub-description@v1.0.1"
|
||||||
secrets = ["DOCKERHUB_USERNAME", "DOCKERHUB_PASSWORD", "DOCKERHUB_REPOSITORY"]
|
secrets = ["DOCKERHUB_USERNAME", "DOCKERHUB_PASSWORD", "DOCKERHUB_REPOSITORY"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -66,11 +67,25 @@ workflow "Update Docker Hub Description" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
action "Docker Hub Description" {
|
action "Docker Hub Description" {
|
||||||
uses = "peter-evans/dockerhub-description@v1.0.0"
|
uses = "peter-evans/dockerhub-description@v1.0.1"
|
||||||
secrets = ["DOCKERHUB_USERNAME", "DOCKERHUB_PASSWORD", "DOCKERHUB_REPOSITORY"]
|
secrets = ["DOCKERHUB_USERNAME", "DOCKERHUB_PASSWORD", "DOCKERHUB_REPOSITORY"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Using the Docker image independently of GitHub Actions
|
||||||
|
|
||||||
|
The image can be executed in other environments independently of GitHub Actions.
|
||||||
|
Simply volume mount the location of the `README.md` file to the container and set environment variables as follows.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -v $PWD:/workspace \
|
||||||
|
-e DOCKERHUB_USERNAME='user1' \
|
||||||
|
-e DOCKERHUB_PASSWORD='xxxxx' \
|
||||||
|
-e DOCKERHUB_REPOSITORY='my-docker-image' \
|
||||||
|
-e README_FILEPATH='/workspace/README.md' \
|
||||||
|
peterevans/dockerhub-description:1.0.1
|
||||||
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
MIT License - see the [LICENSE](LICENSE) file for details
|
MIT License - see the [LICENSE](LICENSE) file for details
|
||||||
|
|||||||
Reference in New Issue
Block a user