From 492bbce6b67908d1b7557f58642746d1cb3519bc Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sun, 23 Oct 2022 16:02:13 +0200 Subject: [PATCH] Build - Fix syntax in container build test (#1050) --- .github/workflows/test-container-build.yml | 12 +++++++++++- Dockerfile | 1 + requirements.txt | 7 ++++--- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-container-build.yml b/.github/workflows/test-container-build.yml index cc457286..7d59ad0b 100644 --- a/.github/workflows/test-container-build.yml +++ b/.github/workflows/test-container-build.yml @@ -1,7 +1,17 @@ name: ChangeDetection.io Container Build Test # Triggers the workflow on push or pull request events -on: [push, pull_request] + +# This line doesnt work, even tho it is the documented one +#on: [push, pull_request] + +on: + push: + paths: + - requirements.txt + - Dockerfile + + pull_request: paths: - requirements.txt - Dockerfile diff --git a/Dockerfile b/Dockerfile index d422918e..978a912c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,6 +64,7 @@ EXPOSE 5000 # The actual flask app COPY changedetectionio /app/changedetectionio + # The eventlet server wrapper COPY changedetection.py /app/changedetection.py diff --git a/requirements.txt b/requirements.txt index bffc2a7f..500f45f9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ -flask~= 2.0 +flask ~= 2.0 flask_wtf -eventlet>=0.31.0 +eventlet >= 0.31.0 validators -timeago ~=1.0 +timeago ~= 1.0 inscriptis ~= 2.2 feedgen ~= 0.9 flask-login ~= 0.5 @@ -47,3 +47,4 @@ selenium ~= 4.1.0 werkzeug ~= 2.0.0 # playwright is installed at Dockerfile build time because it's not available on all platforms +