Docker images with everything you'll need to build and test PHP applications.
Based on Official PHP images and My Gitlab CI Images
8.4-node22
(php/Dockerfile) -8.4-node20
(php/Dockerfile) -8.4-node18
(php/Dockerfile) -8.4-node16
(php/Dockerfile) -8.3-node22
(php/Dockerfile) -8.3-node20
(php/Dockerfile) -8.3-node18
(php/Dockerfile) -8.3-node16
(php/Dockerfile) -8.2-node22
(php/Dockerfile) -8.2-node20
(php/Dockerfile) -8.2-node18
(php/Dockerfile) -8.2-node16
(php/Dockerfile) -8.1-node22
(php/Dockerfile) -8.1-node20
(php/Dockerfile) -8.1-node18
(php/Dockerfile) -8.1-node16
(php/Dockerfile) -8.0-node20
(php/Dockerfile) -8.0-node18
(php/Dockerfile) -8.0-node16
(php/Dockerfile) -7.4-node20
(php/Dockerfile) -7.4-node18
(php/Dockerfile) -7.4-node16
(php/Dockerfile) -
All versions come with:
.deploy: &deploy
stage: deploy
image: cstadler333/gitlab-ci-deployer:8.3
variables:
APP_ENV: prod
cache:
paths:
- vendor/
- node_modules/
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "${SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
deploy live:
<<: *deploy
only:
- master
environment:
name: live
script:
- npm install
- npm run build
- php deployer deploy host --revision="$CI_COMMIT_SHA"