Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
63 lines (61 loc) · 1.9 KB
/
Copy pathaction.yml
File metadata and controls
63 lines (61 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 'Dokploy Deployment'
description: 'Trigger a Dokploy deployment'
branding:
icon: 'upload-cloud'
color: 'gray-dark'
inputs:
dokploy_url:
description: 'Dokploy base URL, e.g. https://dokploy.example.com'
required: true
auth_token:
description: 'Dokploy authentication token'
required: true
application_id:
description: 'Dokploy application ID'
required: true
application_name:
description: 'Dokploy application name'
required: true
wait_for_completion:
description: 'Wait for deployment to finish (default: false)'
required: false
default: 'false'
restart:
description: 'Restart application after deployment (default: false)'
required: false
default: 'false'
debug:
description: 'Enable debug logging (default: false)'
required: false
default: 'false'
skip_deploy:
description: 'Skip deployment trigger (for testing, default: false)'
required: false
default: 'false'
runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install dependencies
shell: bash
run: |
ls -lh && echo ${{ github.action_path }}
pip install -q -r ${{ github.action_path }}/requirements.txt
- name: Run Dokploy deployment
shell: bash
working-directory: ${{ github.action_path }}
env:
INPUT_DOKPLOY_URL: ${{ inputs.dokploy_url }}
INPUT_AUTH_TOKEN: ${{ inputs.auth_token }}
INPUT_APPLICATION_ID: ${{ inputs.application_id }}
INPUT_APPLICATION_NAME: ${{ inputs.application_name }}
INPUT_WAIT_FOR_COMPLETION: ${{ inputs.wait_for_completion }}
INPUT_RESTART: ${{ inputs.restart || 'false' }}
INPUT_SKIP_DEPLOY: ${{ inputs.skip_deploy || 'false' }}
INPUT_DEBUG: ${{ inputs.debug || 'false' }}
PYTHONUNBUFFERED: 1
run: |
python3 -m src.deploy