phd is designed to easily run in various CI/CD tools supporting Docker.
make all
cd tests; make all run-tests
COMPOSE_PROJECT_NAME
s) 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 master
PROJECT_DIR
- location of docker-compose.yml
, eg. auto/cusomter/www.example.com
vendor
Help us to improve the documentation, fork this page.