middleware | check point | release information URL |
---|---|---|
base image | FROM | wordpress - Docker Hub (Choose the most detailed tag because it doesn't move) |
Composer | RUN sh -c 'wget ... | How do I install Composer programmatically? - Composer |
PHPUnit | phpunit/phpunit | Plugin Unit Tests – WP-CLI — WordPress.org |
install-wp-tests | RUN wget -O /usr/bin/install-wp-tests ... | Releases · wp-cli/scaffold-command |
docker-compose -f docker-compose.test.yml run sut
EX:
git tag 5.3.1-php7.3-apache
git push origin 5.3.1-php7.3-apache
Then, new image will automatically built.
I'm planing to automate updating Dockerfile, committing it, and pushing with tag by GitHub Actions. Because Docker Hub prepares link to revision of GitHub repository for referencing Dockerfile and build context. And Docker hub has not support build args yet.
Feature request: Build args on docker hub · Issue #508 · docker/hub-feedback