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
Copy file name to clipboardexpand all lines: hooks/README.md
+47-79
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,28 @@ This directory is for controlling the build of multiple repository versions. It
4
4
5
5
When you have complex build rules, the docker hub UI is incredibly inconvenient, since you cannot edit existing build rules, the full tag/sourcename rules aren't visible, etc. So putting them in a file like this lets them be easily edited, revision-controlled, etc.
6
6
7
-
This script is not project-specific; you can target any image by changing the `image:` line to target your project, and running `fetch` to get your initial settings, and then editing the file to match them. (See under [Implementation](#implementation), below.)
7
+
### Build Rules
8
+
9
+
For each git release tag (e.g. 2.0.0, 2.0.1, etc.), we want to build multiple PHP versions. "Minor" versions are only accessible via an exact PHP version request, while "major" versions are also available under the major version tag variants. So `major 7.2.26` means to tag PHP 7.2.26 under the `7.2` tag as well as under 7.2.26. The "latest" tag is like "major", except that the version is also tagged as "latest".
Here's the code that does the actual work. It's generic for any set of build rules, simply using the "image" property defined above to identify the image, and the `UNAME` and `UPASS` environment variables to authenticated with.
@@ -132,6 +94,8 @@ This will output your existing settings in JSON to use as a starting point for y
0 commit comments