Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Latest commit

 

History

History
20 lines (17 loc) · 684 Bytes

File metadata and controls

20 lines (17 loc) · 684 Bytes

docker swarm php example

  • Install composer packages
    • Expose vendor folder via artifacts (composer-install)
  • Build PHP image, via complex shell scripting and docker build commands using gitlab predefined variables (build-php)
  • Analyse PHP code for mistakes (php-cs-fixer-dry-run)
    • Will warn locally, and fail remotely
  • Check for outdated packages (composer-outdated)
    • Will only warn
  • Deploy swarm services via docker stack deploy (deploy)

Start by calling.

gitlab-ci-local --cwd examples/docker-swarm-php/

If you want stop the stack services call. This is a local only job.

gitlab-ci-local --cwd examples/docker-swarm-php/ remove-stack