phd is designed to easily run in various CI/CD tools supporting Docker.
make allcd tests; make all run-testsCOMPOSE_PROJECT_NAMEs) from built images and performs setup operationsDuring local development the images build for the application stack are named by docker-compose, if not specified otherwise. For testing they are by default named registry/namespace/phd5 via setting the STACK_PHP_IMAGE variable used in docker-compose.test.yml.
In the CI we override this variable by setting it in the configuration to the actual image name we want to push later, eg. registry.example.com/mycomany/the-project for private registries or vendor/image for usage with DockerHub.
Build, test and push a :latest image
make latest
Build, test and push a :1.2.3-4-gfedcba98 image
make release
Setup ENv variables in roj PROJECT_TOKEN
Startup script with auto-migration.
command: "sh -c 'yii migrate --interactive=0 && forego start -r -f /root/Procfile'"
Variables:
PROJECT_TOKEN - token from stacks-staging projectPROJECT_REF - branch, usually masterPROJECT_DIR - location of docker-compose.yml, eg. auto/cusomter/www.example.comvendor
Help us to improve the documentation, fork this page.