Drupal CI/CD image with Drush, Robo, and PHP extensions
4.0K
An Alpine-based Drupal CI/CD image extending php-ci with Drupal-specific PHP extensions and tools.
Everything from php-ci, plus:
mysqli, pdo_mysql — MySQL database supportbcmath — Arbitrary precision mathgd — Image processing| Tag | PHP | Node.js |
|---|---|---|
8.5, latest | 8.5 | 22 |
8.4 | 8.4 | 22 |
8.3 | 8.3 | 22 |
8.2 | 8.2 | 22 |
8.1 | 8.1 | 22 |
<php>-node24 | 8.1-8.5 | 24 |
<php>-node22 | 8.1-8.5 | 22 |
<php>-node20 | 8.1-8.5 | 20 |
<php>-node18 | 8.1-8.5 | 18 |
Examples: 8.4-node24, 8.4-node20, 8.3-node18
docker pull tavib47/drupal-ci:8.4
docker run -v $(pwd):/app -w /app tavib47/drupal-ci:8.4 composer install
image: tavib47/drupal-ci:8.4
stages:
- build
- test
- deploy
build:
stage: build
script:
- composer install
- npm install
- npm run build
test:
stage: test
script:
- ./vendor/bin/phpunit
deploy:
stage: deploy
script:
- drush deploy
jobs:
build:
runs-on: ubuntu-latest
container:
image: tavib47/drupal-ci:8.4
steps:
- uses: actions/checkout@v4
- run: composer install
- run: npm install && npm run build
- run: ./vendor/bin/phpunit
# GitLab CI
.test:
script:
- composer install
- ./vendor/bin/phpunit
test:php8.3:
extends: .test
image: tavib47/drupal-ci:8.3
test:php8.4:
extends: .test
image: tavib47/drupal-ci:8.4
test:node20:
extends: .test
image: tavib47/drupal-ci:8.4-node20
Content type
Image
Digest
sha256:d73f17c2e…
Size
231.7 MB
Last updated
8 months ago
docker pull tavib47/drupal-ci