From 45337bc4e4ce0417aef580d5796752d4575395b4 Mon Sep 17 00:00:00 2001 From: Richard Dubay Date: Thu, 15 Aug 2024 13:17:01 -0400 Subject: [PATCH] Made a few tweaks --- .github/workflows/deploy-server.yml | 2 +- server/Dockerfile | 4 ++-- server/container.template.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-server.yml b/.github/workflows/deploy-server.yml index c46a735..b2321f6 100644 --- a/.github/workflows/deploy-server.yml +++ b/.github/workflows/deploy-server.yml @@ -35,7 +35,7 @@ jobs: - name: Build and push image to Lightsail id: build-image run: | - docker build --build-arg API_DB_URL="${{ secrets.API_DB_URL }}" -t f1-fantasy-league:latest . + docker build --build-arg API_DB_URL="${{ secrets.API_DB_URL }}" --build-arg JWT_SECRET_KEY="${{ secrets.JWT_SECRET_KEY }}" -t f1-fantasy-league:latest . aws lightsail push-container-image --region us-east-1 --service-name f1-fantasy-league --label f1-fantasy-league-api --image f1-fantasy-league:latest - name: Deploy Service run: | diff --git a/server/Dockerfile b/server/Dockerfile index cf7c4f2..550f4f8 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -9,9 +9,9 @@ COPY . . RUN npm install ARG API_DB_URL -ARG SESSION_KEY +ARG JWT_SECRET_KEY ENV DATABASE_URL=$API_DB_URL -ENV SESSION_KEY=$SESSION_KEY +ENV JWT_SECRET_KEY=$JWT_SECRET_KEY EXPOSE 3001 diff --git a/server/container.template.json b/server/container.template.json index 282eafd..404596c 100644 --- a/server/container.template.json +++ b/server/container.template.json @@ -1,7 +1,7 @@ { "containers": { "app": { - "image": ":f1-fantasy-league.f1-fantasy-league-api.11", + "image": ":f1-fantasy-league.f1-fantasy-league-api.28", "environment": { "APP_ENV": "release", "NODE_ENV": "production"