cstadler333 / gitlab-ci-deployer

Deploy PHP Applications with Deployer

Home Page:https://hub.docker.com/r/cstadler333/gitlab-ci-deployer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy PHP Applications with Deployer

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

Logo


GitHub last commit

Docker Pulls


All versions come with:


Gitlab pipeline examples

Symfony examples

Simple .gitlab-ci.yml using MariaDB service

.deploy: &deploy
    stage: deploy
    image: cstadler333/gitlab-ci-deployer:8.3

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"

About

Deploy PHP Applications with Deployer

https://hub.docker.com/r/cstadler333/gitlab-ci-deployer

License:MIT License


Languages

Language:Dockerfile 100.0%