Skip to content

Repository files navigation

GitHub Action for Deployer

 - name: Deployuses: deployphp/action@masterwith:
private-key: ${{ secrets.PRIVATE_KEY }}known-hosts: ${{ secrets.KNOWN_HOSTS }}ssh-config: ${{ secrets.SSH_CONFIG }}dep: deploy prod -v

Inputs

  • private-key - Required. A private key to accessing servers.
  • known-hosts - Optional. Host fingerprints. If omitted StrictHostKeyChecking=no will be used unless ssh-config is provided.
  • ssh-config - Optional. SSH configuration.
  • dep - Required. Arguments to pass to Deployer command.

Deployer version

First, the action will check for Deployer bin at those paths:

  • vendor/bin/dep
  • bin/dep
  • deployer.phar

If bin not found, phar version will be downloaded.

Example

deploy:
name: Deploy to prodruns-on: ubuntu-lateststeps:
- uses: actions/checkout@v1
- name: Setup PHPuses: shivammathur/setup-php@masterwith:
php-version: 7.4
- name: Deployuses: deployphp/action@masterwith:
private-key: ${{ secrets.PRIVATE_KEY }}known-hosts: ${{ secrets.KNOWN_HOSTS }}ssh-config: ${{ secrets.SSH_CONFIG }}dep: deploy prod -v

About

GitHub Action for Deployer

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages