deploy/action.yml

27 lines
626 B
YAML

# action.yml
name: 'Sixohthree Deploy'
description: 'Private deploy pipeline'
inputs:
local_path:
description: 'Local path'
required: false
default: './'
deploy_path:
description: 'Deploy path'
required: true
restart_nginx:
description: 'Restart nginx'
default: no
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.local_path }}
- ${{ inputs.deploy_path }}
- ${{ inputs.restart_nginx }}
env:
INPUT_LOCAL_PATH: ${{ inputs.local_path }}
INPUT_DEPLOY_PATH: ${{ inputs.deploy_path }}
INPUT_RESTART_NGINX: ${{ inputs.restart_nginx }}