File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 ECR_REPOSITORY : lab-repository # set this to your Amazon ECR repository name
3636 ECS_SERVICE : LabManager-task-service-first # set this to your Amazon ECS service name
3737 ECS_CLUSTER : excited-fish # set this to your Amazon ECS cluster name
38- ECS_TASK_DEFINITION : ../../ labman/LabManager-task-definition.json # set this to the path to your Amazon ECS task definition
38+ ECS_TASK_DEFINITION : labman/LabManager-task-definition.json # set this to the path to your Amazon ECS task definition
3939 # file, e.g. .aws/task-definition.json
4040 CONTAINER_NAME : nextjs-lab # set this to the name of the container in the
4141 # containerDefinitions section of your task definition
8181 # Build a docker container and
8282 # push it to ECR so that it can
8383 # be deployed to ECS.
84- docker build --build-arg DATABASE_URL="$DATABASE_URL" -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG ../.. /labman
84+ docker build --build-arg DATABASE_URL="$DATABASE_URL" -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG /labman
8585 docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
8686 echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
8787
You can’t perform that action at this time.
0 commit comments