Skip to content

Commit 5bd4982

Browse files
committed
Change deploy / publish instruction to *not* need a separate branch.
1 parent 4e49e20 commit 5bd4982

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

docs/deploy.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Once the merge request has been merged, a tag can be created, as well as a relea
6161
- Create a `release/v0.X.X` branch
6262
- Change anything that needs to be updated for a new release (at the least the version in `solid/appinfo/info.xml`)
6363
- Open an MR
64+
6465
When the MR is merged a release version can be tagged by creating a GitHub Release
6566

6667
### Tagging a release
@@ -86,7 +87,23 @@ They can be installed using:
8687
composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist
8788
```
8889

89-
to make sure the provided dependencies are usable in the supported PHP versions, a docker image can be used.
90+
to make sure the provided dependencies are usable in the supported PHP versions, the preferred method is to call composer using a docker image. The verbose, but complete command for this is:
91+
92+
```sh
93+
docker run \
94+
-it \
95+
--rm \
96+
--volume ~/.cache/composer/:/root/composer/ \
97+
--volume "${sourceDirectory}/solid:/app" \
98+
--workdir /app \
99+
php:8.0 \
100+
bash -c 'curl -s https://getcomposer.org/installer | php \
101+
&& mv composer.phar /usr/local/bin/composer \
102+
&& apt update \
103+
&& apt install -y git zip \
104+
&& COMPOSER_CACHE_DIR=/root/composer/ composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist \
105+
&& rm /usr/local/bin/composer
106+
```
90107
91108
### Creating a tarball
92109

0 commit comments

Comments
 (0)