Skip to content

Commit bb6cfb9

Browse files
committed
Doc 📖
1 parent 882ef9b commit bb6cfb9

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

README.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,15 @@ Script template: [template/composer.template][composer-template]
166166

167167
### Variables
168168

169-
| Variable name | Description | Default value | Possible values |
170-
| --------------- | ------------------------------------------------------------ | ------------------------------------- | ------------------------------------------------------------ |
171-
| `SOURCE_BRANCH` | Appended to the image name | Repository's current version: `1.1.1` | Any `string` value |
172-
| `DOCKER_REPO` | The Dockerhub repository to perform the tasks against | `jestefane/php-dev` | A Dockerhub repository |
173-
| `DOCKER_TAG` | A combinaison of one PHP version and one PHP variant to perform a task only one image (for example `7.1-cli`) | Empty | Any `PHP_VERSION`-`PHP_VARIANT` combinaison |
174-
| `PHP_VERSIONS` | Space separated list of PHP versions to perform a task on | `5.5 5.6 7.0 7.1 7.2` | Any combination from `5.5`, `5.6`, `7.0`, `7.1`, `7.2` |
175-
| `PHP_VARIANTS` | Space separated list of Docker build variants to perform a task on | `cli fpm` | `cli`, `fpm` |
176-
| `BIN_DIR` | Directory in your `PATH` where you would like to symlink the scripts | `/usr/local/bin` | Any path on your system. Preferaby one already in your `PATH` |
177-
| `SCRIPTS_DIR` | Directory where the scripts are generated (or removed). Relative to the repository's root | `scripts` | Any path on your system |
169+
| Variable name | Description | Default value | Possible values |
170+
| --------------- | ------------------------------------------------------------ | ----------------------------------------------------- | ------------------------------------------------------------ |
171+
| `SOURCE_BRANCH` | Appended to the image name.<br />[Docker Cloud variable][docker-cloud-variable] | Current Git branch: `git rev-parse --abbrev-ref HEAD` | Any `string` value |
172+
| `DOCKER_REPO` | The Dockerhub repository to perform the tasks against<br />[Docker Cloud variable][docker-cloud-variable] | `jestefane/php-dev` | A Dockerhub repository |
173+
| `DOCKER_TAG` | A combinaison of one PHP version and one PHP variant to perform a task only one image (for example `7.1-cli`)<br />[Docker Cloud variable][docker-cloud-variable] | Empty | Any `PHP_VERSION`-`PHP_VARIANT` combinaison |
174+
| `PHP_VERSIONS` | Space separated list of PHP versions to perform a task on. | `5.5 5.6 7.0 7.1 7.2` | Any combination from `5.5`, `5.6`, `7.0`, `7.1`, `7.2` |
175+
| `PHP_VARIANTS` | Space separated list of Docker build variants to perform a task on | `cli fpm` | `cli`, `fpm` |
176+
| `BIN_DIR` | Directory in your `PATH` where you would like to symlink the scripts | `/usr/local/bin` | Any path on your system. Preferaby one already in your `PATH` |
177+
| `SCRIPTS_DIR` | Directory where the scripts are generated (or removed). Relative to the repository's root | `scripts` | Any path on your system |
178178

179179
> **Note**: When overriding space separated values from the CLI, you have to escape spaces. For example in `bash` you use `\`:
180180
>
@@ -304,4 +304,5 @@ $ make rm_dangling
304304
[templates]: #script-templates "Script Templates"
305305
[shortcuts-make]: #create-the-shortcuts "Create the Shortcuts"
306306
[scripts-make]: #generate-the-scripts "Generate the Scripts"
307+
[docker-cloud-variable]: https://docs.docker.com/docker-hub/builds/advanced/#environment-variables-for-building-and-testing "Environment Variables for Building and Testing"
307308
[license]: ./LICENSE "MIT License File"

0 commit comments

Comments
 (0)