From 39b06c63e88787aab55180a8738ec171c9f37eff Mon Sep 17 00:00:00 2001 From: SolitudePy <47316655+SolitudePy@users.noreply.github.com> Date: Mon, 17 Jun 2024 00:03:53 +0300 Subject: [PATCH] Fix github action --- .github/workflows/docker-action.yaml | 6 ++++-- Dockerfile | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-action.yaml b/.github/workflows/docker-action.yaml index 3473195..a9d6dbd 100644 --- a/.github/workflows/docker-action.yaml +++ b/.github/workflows/docker-action.yaml @@ -1,7 +1,9 @@ name: Build Docker Container and test HTTP -on: [push] - +on: + push: + branches: + - main jobs: build-and-test: runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index 72e9370..a402e16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ COPY requirements.txt /app/ RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the application code -COPY ./srac /app/ +COPY ./src /app/ # Expose the port the app runs on EXPOSE 5000