Sign inSign up

cstadler333/deployer

By cstadler333

•Updated about 4 years ago
Archived

Deploy PHP Applications with Deployer

Image
Integration & delivery
0

244

cstadler333/deployer repository overview

⁠Deploy PHP Applications with Deployer

Docker images with everything you'll need to build and test PHP applications.

Logo


GitHub last commit

Docker Pulls


⁠Based on Official PHP images⁠ and My PHP Images⁠

CURRENTLY ONLY SUPPORTS PHP 7.4!

All versions come with Node 16⁠ and Deployer 7.0⁠


⁠Gitlab pipeline examples

⁠Symfony examples
⁠Simple .gitlab-ci.yml using MariaDB service
.deploy: &deploy
    stage: deploy
    image: cstadler333/deployer:7.0

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" -v

Tag summary

Content type

Image

Digest

sha256:5c49e0414…

Size

223.2 MB

Last updated

about 4 years ago

docker pull cstadler333/deployer