Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.13 KB

README.md

File metadata and controls

61 lines (41 loc) · 1.13 KB

Drupal GitLab local pipelines

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