Skip to content

mwienk/gitlab-ci-deployer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

mwienk/php-deployer

This repository contains the Dockerfile for the image that can be used to deploy PHP projects with https://deployer.org. Contains the source version of Deployer and the recipes package.

Example use in .gitlab-ci.yml

deploy:
  stage: deploy
  image: mwienk/php-deployer
  only:
    - tags
  before_script:
    - eval $(ssh-agent -s)
    - ssh-add <(echo "$SSH_PRIVATE_KEY")
    - mkdir -p ~/.ssh
    - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
  script:
    - dep deploy ${CI_ENVIRONMENT_NAME} --tag=$CI_COMMIT_REF_NAME

About

Deployer Docker image for GitLab CI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published