jointrashposs/content/en/docs/3.for-admin/install/resources/push-docker-hub.md
かっこかり 95c78f1118
New Crowdin updates (#62)
* New translations ja-jp.yml (Chinese Traditional)

* New translations custom-emoji.md (French)

* New translations custom-emoji.md (Italian)

* New translations custom-emoji.md (Polish)

* New translations custom-emoji.md (Chinese Simplified)

* New translations custom-emoji.md (English)

* New translations custom-emoji.md (Indonesian)

* New translations deck.md (French)

* New translations deck.md (Italian)

* New translations deck.md (Polish)

* New translations deck.md (Chinese Simplified)

* New translations deck.md (English)

* New translations deck.md (Indonesian)

* New translations ja-jp.yml (Chinese Traditional)

* New translations ja-jp.yml (French)

* New translations ja-jp.yml (Italian)

* New translations ja-jp.yml (Korean)

* New translations ja-jp.yml (Polish)

* New translations ja-jp.yml (Chinese Simplified)

* New translations ja-jp.yml (English)

* New translations ja-jp.yml (Indonesian)

* New translations 5.releases.md (French)

* New translations 5.releases.md (Italian)

* New translations 5.releases.md (Korean)

* New translations 5.releases.md (Polish)

* New translations 5.releases.md (Chinese Simplified)

* New translations 5.releases.md (Chinese Traditional)

* New translations 5.releases.md (English)

* New translations 5.releases.md (Indonesian)

* New translations 5.releases.md (French)

* New translations 5.releases.md (Italian)

* New translations 5.releases.md (Korean)

* New translations 5.releases.md (Polish)

* New translations 5.releases.md (Chinese Simplified)

* New translations 5.releases.md (Chinese Traditional)

* New translations 5.releases.md (English)

* New translations 5.releases.md (Indonesian)

* New translations ja-jp.yml (English)

* New translations announcement.md (English)

* New translations nginx.md (English)

* New translations announcement.md (English)

* New translations 1.about-misskey.md (English)

* New translations 1.index.md (English)

* New translations 1.index.md (English)

* New translations cdn.md (English)

* New translations scale-out.md (English)

* New translations scale-out.md (English)

* New translations push-docker-hub.md (English)
2023-12-23 13:54:59 +09:00

1.7 KiB

How to push to Docker Hub using GitHub Actions

An example of how to push to Docker Hub using Github Actions can be found on the original repository in the file /.github/workflows/docker.yml

In the original workflow when a new release happens, it will be pushed to Docker Hub with the latest and <release name> tags.


※ Docker Hub may have a tag like <branch name>, but those tags are not automatically pushed.

Executing this workflow in a fork will fail.

In the following information, we describe how to make the Fork push to its own Docker Hub repository.

How to set up a workflow to push to your own Docker Hub repository

  1. Create a repository on Docker Hub.
  2. Replace the image mentions in the workflow file with the name of the repository you created.
  3. Create two encrypted secrets on GitHub.

    You need to create DOCKER_USERNAME and DOCKER_PASSWORD, which are the Docker Hub username and password, respectively.

How to push

The default settings in the workflow will automatically push to Docker Hub upon a new release.

Specifically, when a release is made using GitHub's release function it is pushed to Docker Hub with the tags latest and <release name>

You can also push manually from GitHub.

To do so, go to Actions => Publish Docker image => Run workflow and then select a branch.

However doing this will make it push with a tag labeled as <branch name>.