Skip to content

Add example to update DockerHub repo description - #117

Merged
crazy-max merged 1 commit into
docker:masterfrom
crazy-max:update-repo-desc-example
Sep 10, 2020
Merged

crazy-max merged 1 commit into
docker:masterfrom
crazy-max:update-repo-desc-example

Conversation

@crazy-max

Copy link
Copy Markdown
Member

Closes #21

Signed-off-by: CrazyMax [email protected]

@crazy-max
crazy-max requested a review from tonistiigi September 9, 2020 23:14
@codecov-commenter

codecov-commenter commented Sep 9, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #117 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #117   +/-   ##
=======================================
  Coverage   44.85%   44.85%           
=======================================
  Files           3        3           
  Lines         107      107           
  Branches       17       17           
=======================================
  Hits           48       48           
  Misses         46       46           
  Partials       13       13           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c27a49b...f5974eb. Read the comment docs.

@crazy-max
crazy-max merged commit f38eb7f into docker:master Sep 10, 2020
@crazy-max
crazy-max deleted the update-repo-desc-example branch September 10, 2020 09:32
Comment thread README.md
name: Update repo description
uses: peter-evans/dockerhub-description@v2
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it the same user and password? I think you should reuse the secrets.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@felipecrs As stipulated by the Docker Hub Description action, you cannot use a DockerHub Token to update the description. That's why I don't use the same credentials here. More info: https://github.com/peter-evans/dockerhub-description#usage

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the DOCKER_PASSWORD should be renamed as DOCKER_TOKEN so :)

@crazy-max crazy-max Sep 10, 2020 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@felipecrs DOCKER_PASSWORD can be used as docker login too but yeah good idea to use DOCKER_TOKEN as best practice. I will update the README about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Readme and description with push on Docker hub

3 participants