This is a small project to try and run Drupal GitLab tasks locally with GrumpPHP via Docker.
-
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
-
Add vendor and grumphp.yml to .gitignore file:
# Composer vendor composer.lock grumphp.yml
-
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
-
Create image
make build
-
Log in to Docker Hub:
docker login
-
Tag Docker Image
docker tag hkirsman/dglp hkirsman/dglp:latest
-
Push Docker Image
docker push hkirsman/dglp:latest