Skip to content

Run PHP Artisan command on beta #26

Run PHP Artisan command on beta

Run PHP Artisan command on beta #26

name: Run PHP Artisan command on beta
on:
workflow_dispatch:
inputs:
artisan_arguments:
description: "PHP Artisan command arguments (php artisan <args>)"
type: string
required: true
jobs:
run-command:
name: Run command via ssh
runs-on: ubuntu-22.04
steps:
- name: run php artisan command
uses: appleboy/ssh-action@v1.0.3
with:
timeout: 10s
command_timeout: 10m
host: ${{ secrets.VPS_OVH_BF7EC892_HOST }}
port: ${{ secrets.VPS_OVH_BF7EC892_PORT }}
username: ${{ secrets.VPS_OVH_BF7EC892_USERNAME }}
key: ${{ secrets.VPS_OVH_BF7EC892_SSH_PRIVATE_KEY }}
passphrase: ${{ secrets.VPS_OVH_BF7EC892_SSH_PRIVATE_KEY_PASSPHRASE }}
script_stop: true
script: |
cd ${{ secrets.TOBY_VPS_BETA_APP_PATH }}/environment/prod/deployment/beta
make beta-artisan ARTISAN_ARGS="${{ inputs.artisan_arguments }}"