/Laravel-CI

Docker Images to use for a Gitlab CI/CD Pipeline

Primary LanguageBlade

Laravel Docker Images for Gitlab CI/CD pipelines

Hi, this are my Docker Images that I personally use to run my Gitlab CI/CD Pipeline for Laravel Projects.

How To Build Images

  1. Make sure to only use PHP official Images using CLI Alpine Variant
  2. Specify a Node Version
  3. Build step is automatically done using github actions (WIP)

PHP 8.2 with Node 16 and Composer

docker build -t sean1999/laravel-ci:8.2 \
  --build-arg BASE_PHP_IMAGE=php:8.2  \
  --build-arg NODE_VERSION=16 \
  --platform=linux/amd64 \
  --no-cache Images/php 
docker push sean1999/laravel-ci:8.2

PHP 8.1 with Node 16 and Composer

docker build -t sean1999/laravel-ci:8.1 \
  --build-arg BASE_PHP_IMAGE=php:8.1 \
  --build-arg NODE_VERSION=16 \
  --platform=linux/amd64 \
  --no-cache Images/php 2>&1 | tee Logs/8.1-build.log
docker push sean1999/laravel-ci:8.1

PHP 8.0 with Node 16 and Composer

docker build -t sean1999/laravel-ci:8.0 \
  --build-arg BASE_PHP_IMAGE=php:8.0 \
  --build-arg NODE_VERSION=16  \
  --platform=linux/amd64 \
  --no-cache Images/php
docker push sean1999/laravel-ci:8.0

Roadmap

  1. For now this repository only handles Laravel Projects but I will soon create a docker image that will also be perfect for Other Frameworks
    1. Svelte & Vue