Skip to content

Commit 77caf5a

Browse files
committed
WIP
1 parent 42d0072 commit 77caf5a

24 files changed

+13851
-81
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Dependency directory
22
node_modules
33

4+
local-scripts
5+
46
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
57
# Logs
68
logs

action.yml

Lines changed: 63 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,77 @@
1-
name: The name of your action here
2-
description: Provide a description here
3-
author: Your name or organization here
1+
name: Coolify NodeJS and Supabase Deployment
2+
description:
3+
Deploys a mono-repo application with a Nixpacks frontend and Supabase backend
4+
to Coolify.
5+
author: Jonathan Bell
46

5-
# Add your action's branding here. This will appear on the GitHub Marketplace.
67
branding:
78
icon: heart
89
color: red
910

1011
# Define your inputs here.
1112
inputs:
12-
milliseconds:
13-
description: Your input description here
13+
deployment_app_uuid:
14+
description: The UUID of the Coolify GitHub app to use for generating deployments
15+
required: false
16+
base_deployment_url:
17+
description: The base URL to deploy the web application to. This is used to generate the deployment URL.
18+
required: false
19+
default: 'dev.pawtograder.net'
20+
ephemeral:
21+
description:
22+
Whether to deploy the application as ephemeral (will be deleted after 24
23+
hours).
24+
required: false
25+
default: false
26+
type: boolean
27+
coolify_api_url:
28+
description: The URL of the Coolify API.
29+
required: true
30+
default: 'https://api.coolify.io'
31+
coolify_api_token:
32+
description: The token for the Coolify API.
33+
required: true
34+
coolify_project_uuid:
35+
description: The UUID of the Coolify project to deploy to.
36+
required: true
37+
coolify_environment_uuid:
38+
description: The UUID of the Coolify environment to deploy to.
39+
required: true
40+
default: 'f0c00s0s8g88ock4swc0w4w8'
41+
coolify_environment_name:
42+
description: The name of the Coolify environment to deploy to.
43+
required: true
44+
coolify_server_uuid:
45+
description: The UUID of the Coolify server to deploy to.
46+
required: false
47+
coolify_supabase_deploy_token:
48+
description: The deploy token for the Supabase service.
49+
required: true
50+
coolify_supabase_api_url:
51+
description:
52+
The URL of the Supabase deployment service. See
53+
https://github.com/pawtograder/supabase-coolify-deployment
54+
required: true
55+
coolify_supabase_service_role_key:
56+
description:
57+
The service role key for the Supabase deployment service. See
58+
https://github.com/pawtograder/supabase-coolify-deployment
1459
required: true
15-
default: '1000'
1660

1761
# Define your outputs here.
1862
outputs:
19-
time:
20-
description: Your output description here
63+
supabase_url:
64+
description: The URL of the newly deployed Supabase service.
65+
supabase_service_role_key:
66+
description: The service role key for the newly deployed Supabase service.
67+
supabase_anon_key:
68+
description: The anon key for the newly deployed Supabase service.
69+
app_url:
70+
description: The URL of the newly deployed frontend web application.
71+
service_uuid:
72+
description: The UUID of the newly deployed service.
73+
app_uuid:
74+
description: The UUID of the newly deployed web application.
2175

2276
runs:
2377
using: node20

eslint.config.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,15 @@ const compat = new FlatCompat({
2222

2323
export default [
2424
{
25-
ignores: ['**/coverage', '**/dist', '**/linter', '**/node_modules']
25+
ignores: [
26+
'**/coverage',
27+
'**/dist',
28+
'**/linter',
29+
'**/node_modules',
30+
'.tsimp',
31+
'local-scripts',
32+
'src/client'
33+
]
2634
},
2735
...compat.extends(
2836
'eslint:recommended',

0 commit comments

Comments
 (0)