-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e894db
commit 8c3fec2
Showing
4 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Add support for GHCR.io | ||
|
||
We've added support for an additional registry to our two commands that were registry specific. | ||
|
||
`update-action-to-use-docker-image-to-run-action` now takes an environment variable `REGISTRY` to indicate which registry to use. | ||
|
||
`update-version-in-README` now support changing docker urls for both the default (none) and for urls targeting `ghcr.io`. | ||
|
||
See the README for updated usage instructions for `update-action-to-use-docker-image-to-run-action`. You don't need to make any changes for related to the `update-version-in-README` change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -530,7 +530,20 @@ An example step config: | |
GIT_USER_EMAIL: "[email protected]" | ||
``` | ||
|
||
N.B. currently limited to supporting images that are uploaded to Docker Hub. | ||
To use a registry other than DockerHub, add the registry in the REGISTRY environment variable. For example to use GitHub Container Registry: | ||
|
||
```yml | ||
- name: Set action to run using prebuilt image | ||
uses: ponylang/[email protected] | ||
with: | ||
entrypoint: update-action-to-use-docker-image-to-run-action | ||
env: | ||
GIT_USER_NAME: "Ponylang Main Bot" | ||
GIT_USER_EMAIL: "[email protected]" | ||
REGISTRY: "ghcr.io" | ||
``` | ||
|
||
Current valid entries for `REGISTRY` are '', 'docker.io', and 'ghcr.io'. | ||
|
||
### update-action-to-use-dockerfile-to-run-action | ||
|
||
|
@@ -604,6 +617,7 @@ Can update the following version patterns: | |
- corral add github.com/REPO.git --version \d+\.\d+\.\d+ | ||
- REPO@\d+\.\d+\.\d+ <== standard action url | ||
- docker://REPO:\d+\.\d+\.\d+ <== docker hub url | ||
- docker://ghcr.io/REPO:\d+\.\d+\.\d+ <== github container registry url | ||
|
||
- **Must** be triggered by an `announce-X.Y.Z` tag push. | ||
- **Must** be run in a job after `actions/checkout` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters