Files
gitlab-ci-local/examples/docker-swarm-php
dependabot[bot] f75d980e3e build(deps-dev): bump symfony/process in /examples/docker-swarm-php (#1414)
Bumps [symfony/process](https://github.com/symfony/process) from 5.2.4 to 5.4.46.
- [Release notes](https://github.com/symfony/process/releases)
- [Changelog](https://github.com/symfony/process/blob/7.1/CHANGELOG.md)
- [Commits](https://github.com/symfony/process/compare/v5.2.4...v5.4.46)

---
updated-dependencies:
- dependency-name: symfony/process
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-07 19:16:49 +01:00
..
2024-07-26 08:15:35 +02:00
2021-03-14 13:10:24 +01:00
2021-03-14 13:10:24 +01:00
2021-03-14 13:10:24 +01:00
2021-03-14 13:10:24 +01:00
2021-10-05 11:23:40 +02:00

docker swarm php example

  • Install composer packages (composer-install)
    • Expose vendor folder via artifacts
    • Cache composer home folder (for speed)
  • Build PHP image (build-php)
    • Use gitlab predefined variables to name image properly
    • Prevent accidental docker push locally
  • 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)
    • Use artifacts.reports.dotenv from build-php job

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