2024-04-27 08:58:57 +00:00
|
|
|
# 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
|
2024-05-18 22:55:01 +00:00
|
|
|
restart_nginx:
|
|
|
|
description: 'Restart nginx'
|
|
|
|
default: no
|
|
|
|
required: false
|
2024-04-27 08:58:57 +00:00
|
|
|
runs:
|
|
|
|
using: 'docker'
|
|
|
|
image: 'Dockerfile'
|
2024-05-18 23:17:50 +00:00
|
|
|
args:
|
|
|
|
- ${{ inputs.local_path }}
|
|
|
|
- ${{ inputs.deploy_path }}
|
|
|
|
- ${{ inputs.restart_nginx }}
|
2024-05-18 22:55:01 +00:00
|
|
|
env:
|
|
|
|
INPUT_LOCAL_PATH: ${{ inputs.local_path }}
|
|
|
|
INPUT_DEPLOY_PATH: ${{ inputs.deploy_path }}
|
|
|
|
INPUT_RESTART_NGINX: ${{ inputs.restart_nginx }}
|