Run PHP Artisan command on beta #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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 }}" |