DavMelchi commited on
Commit
18f1af9
·
1 Parent(s): f68be5e

Refactor GitHub Actions workflow to use paths-ignore instead of negated paths and simplify Dockerfile CMD to single-line format with consolidated websocket origin flag

Browse files
.github/workflows/main.yml CHANGED
@@ -14,10 +14,11 @@ on:
14
  - ".streamlit/**"
15
  - "requirements.txt"
16
  - "README.md"
17
- - "!.github/workflows/kpi_analysis.yml"
18
- - "!hf_spaces/**"
19
- - "!panel_app/**"
20
- - "!process_kpi/kpi_health_check/**"
 
21
 
22
  # to run this workflow manually from the Actions tab
23
  workflow_dispatch:
 
14
  - ".streamlit/**"
15
  - "requirements.txt"
16
  - "README.md"
17
+ paths-ignore:
18
+ - "process_kpi/kpi_health_check/**"
19
+ - "panel_app/**"
20
+ - "hf_spaces/**"
21
+ - ".github/workflows/kpi_analysis.yml"
22
 
23
  # to run this workflow manually from the Actions tab
24
  workflow_dispatch:
hf_spaces/kpi_analysis/Dockerfile CHANGED
@@ -11,18 +11,4 @@ COPY --chown=user:user . /app
11
  USER user
12
  EXPOSE 7860
13
 
14
- CMD [
15
- "panel",
16
- "serve",
17
- "panel_app/panel_portal.py",
18
- "--address",
19
- "0.0.0.0",
20
- "--port",
21
- "7860",
22
- "--allow-websocket-origin",
23
- "*",
24
- "--num-procs",
25
- "1",
26
- "--log-level",
27
- "info"
28
- ]
 
11
  USER user
12
  EXPOSE 7860
13
 
14
+ CMD ["panel", "serve", "panel_app/panel_portal.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin=*", "--num-procs", "1", "--log-level", "info"]