Sign inSign up

tavib47/drupal-ci

By tavib47

•Updated 8 months ago

Drupal CI/CD image with Drush, Robo, and PHP extensions

Image
0

4.0K

tavib47/drupal-ci repository overview

⁠Drupal CI Image

Docker Hub Image Size

An Alpine-based Drupal CI/CD image extending php-ci⁠ with Drupal-specific PHP extensions and tools.

⁠Features

Everything from php-ci⁠, plus:

⁠PHP Extensions
  • mysqli, pdo_mysql — MySQL database support
  • bcmath — Arbitrary precision math
  • gd — Image processing
⁠Tools

⁠Supported Tags

TagPHPNode.js
8.5, latest8.522
8.48.422
8.38.322
8.28.222
8.18.122
<php>-node248.1-8.524
<php>-node228.1-8.522
<php>-node208.1-8.520
<php>-node188.1-8.518

Examples: 8.4-node24, 8.4-node20, 8.3-node18

⁠Usage

docker pull tavib47/drupal-ci:8.4
docker run -v $(pwd):/app -w /app tavib47/drupal-ci:8.4 composer install
⁠GitLab CI
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
⁠GitHub Actions
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
⁠Multi-Version Testing
# 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

⁠Source

GitHub Repository⁠

Tag summary

Content type

Image

Digest

sha256:d73f17c2e…

Size

231.7 MB

Last updated

8 months ago

docker pull tavib47/drupal-ci