Skip to content

Commit

Permalink
CI: change node to v20 and fix docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
lifnaja committed Mar 31, 2024
1 parent 69d90f6 commit a4382c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,6 @@ jobs:
echo "$DOCKER_IMAGE_WITH_TAG"
aws ecr get-login-password --region ap-southeast-1 | docker login --username AWS --password-stdin 844772501268.dkr.ecr.ap-southeast-1.amazonaws.com
docker pull $DOCKER_IMAGE_WITH_TAG
docker run -p 3001:3001 $DOCKER_IMAGE_WITH_TAG
docker stop training-api
docker rm training-api
docker run -p 3001:3001 --name training-api -d $DOCKER_IMAGE_WITH_TAG
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the official Node.js image as a base
FROM node:16
FROM node:20

# Set the working directory inside the container
WORKDIR /app
Expand Down

0 comments on commit a4382c0

Please sign in to comment.