You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/workflows/pipelines/actions/builtin/serve-static-files.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,12 @@ Pay attention this action is only available if your objectstore is configured to
12
12
## Parameters
13
13
* name: Name to display in CDS UI and identify your static files
14
14
* path: Path where static files will be uploaded (example: mywebsite/*). If it's a file, the entrypoint would be set to this filename by default.
15
-
* tag: Filename (and not path) for the entrypoint when serving static files (default: if empty it would be index.html).
15
+
* entrypoint: Filename (and not path) for the entrypoint when serving static files (default: if empty it would be index.html).
16
+
* static-key: Indicate a static-key which will be a reference to keep the same generated URL. Example: {{.git.branch}}.
16
17
17
18
### Example
18
19
19
-
* In this example I created a website with script in bash and use action `Serve Static Files`.
20
+
* In this example I created a website with script in bash and use action `Serve Static Files`. If you want to keep the same URL by .git.branch for example you can indicate in the advanced parameters a `static-key` equals to `{{.git.branch}}`.
INSERT into action_parameter (action_id, name, description, type, value, advanced) values((select id from action where name ='Serve Static Files'and type ='Builtin'), 'static-key', 'Indicate a static-key which will be a reference to keep the same generated URL. Example: {{.git.branch}}', 'string', '', true);
4
+
ALTERTABLE workflow_node_run_static_files ADD COLUMN static_key TEXT DEFAULT '';
5
+
6
+
-- +migrate Down
7
+
8
+
DELETEfrom action_parameter where name ='static-key'and action_id = (select id from action where name ='Serve Static Files'and type ='Builtin');
9
+
ALTERTABLE workflow_node_run_static_files DROP COLUMN static_key;
0 commit comments