Skip to content

Commit

Permalink
Update composer-require-checker to v4.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Mar 29, 2023
1 parent 5b20d9f commit 4453371
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4-cli as base
FROM php:8.1-cli as base
RUN apt-get update && apt-get install -y libzip4

FROM base as build_extensions
Expand All @@ -7,12 +7,12 @@ RUN apt-get update && apt-get install -y libzip-dev \
&& docker-php-ext-install gettext zip \
&& docker-php-ext-enable gettext zip

FROM composer:2.0.13 as staging
FROM composer:2 as staging

RUN apk --no-cache add git

WORKDIR /composer-require-checker
ARG revision=3.2.0
ARG revision=4.5.0
ENV COMPOSER_REQUIRE_CHECKER_VERSION=${revision}
RUN git clone https://github.com/maglnet/ComposerRequireChecker.git /composer-require-checker
RUN git checkout $revision \
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
name: ComposerRequireChecker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: ComposerRequireChecker
uses: docker://webfactory/composer-require-checker:3.2.0
uses: docker://webfactory/composer-require-checker:4.5.0
```
This configuration will use the pre-built image at the Docker Hub. If you
Expand All @@ -33,17 +33,17 @@ jobs:
name: ComposerRequireChecker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: ComposerRequireChecker
- uses: docker://webfactory/composer-require-checker:3.2.0
+ uses: webfactory/docker-composer-require-checker@0.2.0
- uses: docker://webfactory/composer-require-checker:4.5.0
+ uses: webfactory/docker-composer-require-checker@0.3.0
```

*Note:* When using the Docker image, the tag refers to the Docker image tag.
When referring to this repo, use a tag or commit hash for the Dockerfile.

*Note:* This will build the Docker image every time your workflow is run.
The build will currently use the `3.2.0` release tag of `ComposerRequireChecker`,
The build will currently use the `4.5.0` release tag of `ComposerRequireChecker`,
which is the latest version as of writing.

In either case, to pass a custom config file, add this:
Expand All @@ -57,9 +57,9 @@ jobs:
name: ComposerRequireChecker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: ComposerRequireChecker
uses: docker://webfactory/composer-require-checker:3.2.0
uses: docker://webfactory/composer-require-checker:4.5.0
+ with:
+ args: --config-file=composer-require-checker.js
```
Expand All @@ -69,7 +69,7 @@ jobs:
Apart from GitHub Actions, you can run the Docker image in any given
directory:

`docker run --rm -it -v ${PWD}:/app webfactory/composer-require-checker:3.2.0`
`docker run --rm -it -v ${PWD}:/app webfactory/composer-require-checker:4.5.0`

## Credits, Copyright and License

Expand All @@ -80,4 +80,4 @@ developer looking for new challenges, we'd like to hear from you!
- <https://www.webfactory.de>
- <https://twitter.com/webfactory>

Copyright 2019 – 2021 webfactory GmbH, Bonn. Code released under [the MIT license](LICENSE).
Copyright 2019 – 2023 webfactory GmbH, Bonn. Code released under [the MIT license](LICENSE).

0 comments on commit 4453371

Please sign in to comment.