wunderio/drupal-gitlab-local-pipelines

Run Drupal Gitlab pipeline tasks locally with GrumpPHP.

0.0.10 2024-06-28 07:31 UTC

This package is auto-updated.

Last update: 2024-10-28 08:23:26 UTC


README

This is a small project to try and run Drupal GitLab tasks locally with GrumpPHP via Docker.

Installation

  1. Install wunderio/drupal-gitlab-local-pipelines Composer package using our Docker image (answer 'y' when prompted):

    docker run -it -v "$(pwd)":/app hkirsman/dglp composer require wunderio/drupal-gitlab-local-pipelines --dev

    or use your local Composer:

    composer require wunderio/drupal-gitlab-local-pipelines --dev
  2. Add vendor and grumphp.yml to .gitignore file:

    # Composer
    vendor
    composer.lock
    grumphp.yml
  3. Start using, either update your code and try to commit or run the scanner on whole codebase:

    docker run -it -v "$(pwd)":/app hkirsman/dglp vendor/bin/grumphp run

Pushing Docker changes Docker Hub

  1. Create image

    make build
  2. Log in to Docker Hub:

    docker login
  3. Tag Docker Image

    docker tag hkirsman/dglp hkirsman/dglp:latest
  4. Push Docker Image

    docker push hkirsman/dglp:latest