You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 9, 2022. It is now read-only.
#To access another docker registry like dockerhub you'll have to add `DOCKERHUB_UERNAME` and `DOCKERHUB_PAT` in github secrets.
63
66
- name: Build and Publish Docker image to Dockerhub instead of GPR
@@ -83,16 +86,14 @@ jobs:
83
86
84
87
### Mandatory Inputs
85
88
86
-
1. `USERNAME` the login username, most likely your github handle. This username must have write access to the repo where the action is called. `x-access-token` should suffice.
87
-
2. `PASSWORD` Your GitHub password that has write access to the repo where this action is called. `${{ secrets.GITHUB_TOKEN }}` should suffice.
88
-
3. `IMAGE_NAME` is the name of the image you would like to push
89
-
4. `DOCKERFILE_PATH`: The full path (including the filename) relative to the root of the repository that contains the Dockerfile that specifies your build.
90
-
5. `BUILD_CONTEXT`: The directory for the build context. See these [docs](https://docs.docker.com/engine/reference/commandline/build/) for more information on the definition of build context.
89
+
1. `IMAGE_NAME` is the name of the image you would like to push
90
+
2. `DOCKERFILE_PATH`: The full path (including the filename) relative to the root of the repository that contains the Dockerfile that specifies your build.
91
+
3. `BUILD_CONTEXT`: The directory for the build context. See these [docs](https://docs.docker.com/engine/reference/commandline/build/) for more information on the definition of build context.
91
92
92
93
## Optional Inputs
93
94
94
95
1. `cache`: if value is `true`, attempts to use the last pushed image as a cache. Default value is `false`.
95
-
2. `IMAGE_TAG`: if value is set, use provided value. Default value is the first 12 characters of the GitHub SHA that triggered the action.
96
+
2. `tag`: a custom tag you wish to assign to the image.
96
97
3. `DOCKERHUB_REPOSITORY`: if value is set, you don't need to set `IMAGE_NAME`. It will push the image to the given dockerhub repository instead of using GPR.
97
98
Why? Because Github Actions don't support downloading images without authentication at the moment. See: https://github.community/t5/GitHub-Actions/docker-pull-from-public-GitHub-Package-Registry-fail-with-quot/m-p/32782
0 commit comments