Skip to content

Commit

Permalink
Made a few tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
richarddubay committed Aug 15, 2024
1 parent bf5cebe commit 45337bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion server/container.template.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 45337bc

Please sign in to comment.