fix(ci): workflow

This commit is contained in:
Stan Girard 2023-07-18 16:26:10 +02:00
parent 8545b9ca3b
commit 7bc9f614c5
5 changed files with 9 additions and 9 deletions

View File

@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend/core
working-directory: ./backend/
environment: production
steps:

View File

@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend/core
working-directory: ./backend/
environment: production
steps:
@ -51,7 +51,7 @@ jobs:
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS.
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG ./core/Dockerfile
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT

View File

@ -35,5 +35,5 @@ jobs:
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS.
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker build -t quivr-test-docker .

View File

@ -5,12 +5,12 @@ RUN apt-get update && apt-get install -y libgeos-dev pandoc
WORKDIR /code
COPY ./core/requirements.txt /code/requirements.txt
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir -r /code/requirements.txt --timeout 100
#You may need to run `chmod +x ./backend/core/scripts/start.sh` on your host machine if you get a permission error
COPY ./core/scripts/start.sh /code/scripts/start.sh
#You may need to run `chmod +x ./backend/scripts/start.sh` on your host machine if you get a permission error
COPY ./scripts/start.sh /code/scripts/start.sh
RUN chmod +x /code/scripts/start.sh
COPY ./core /code/

View File

@ -15,8 +15,8 @@ services:
env_file:
- ./backend/core/.env
build:
context: backend
dockerfile: core/Dockerfile
context: backend/core/
dockerfile: Dockerfile
container_name: backend-core
restart: always
volumes: