diff --git a/.github/workflows/stg-deploy.yml b/.github/workflows/stg-deploy.yml index 967d20b..7064b17 100644 --- a/.github/workflows/stg-deploy.yml +++ b/.github/workflows/stg-deploy.yml @@ -2,15 +2,15 @@ name: Deploy on stg Server (Amazon ECS) on: pull_request: - types: [ closed ] - branches: [ develop ] + types: [closed] + branches: [develop] env: AWS_REGION: ap-northeast-2 ECR_REPOSITORY: chat-stg ECS_SERVICE: chat-service ECS_CLUSTER: gloddy-ecs-stg - ECS_TASK_DEFINITION: ./aws/task-definition-stg.json + ECS_TASK_DEFINITION: task-definition-stg.json CONTAINER_NAME: springboot diff --git a/Dockerfile_STG b/Dockerfile_STG index 5c16513..d6e549e 100644 --- a/Dockerfile_STG +++ b/Dockerfile_STG @@ -3,9 +3,8 @@ FROM openjdk:17.0-slim ARG PROJECT_DIRECTORY=/build WORKDIR $PROJECT_DIRECTORY -ARG JAR_FILE_PATH=api/build/libs/GloddyChat-0.0.1-SNAPSHOT.jar -COPY ${JAR_FILE_PATH} GloddyChat.jar - +ARG JAR_FILE_PATH=api/build/libs/GloddyChat.jar +COPY ${JAR_FILE_PATH} app.jar ENV TZ=Asia/Seoul @@ -15,4 +14,4 @@ RUN apt-get update && apt-get install -y curl wget \ && wget -O dd-java-agent.jar 'https://dtdg.co/latest-java-tracer' \ && rm -rf /var/lib/apt/lists/* -ENTRYPOINT ["java", "-javaagent:dd-java-agent.jar", "-Ddd.profiling.enabled=true", "-XX:FlightRecorderOptions=stackdepth=256", "-Ddd.appsec.enabled=true", "-Ddd.iast.enabled=true", "-Ddd.logs.injection=true", "-Ddd.jmxfetch.enabled=true", "-Ddd.service=gloddy-community", "-Ddd.env=production", "-jar", "app.jar"] +ENTRYPOINT ["java", "-javaagent:dd-java-agent.jar", "-Ddd.profiling.enabled=true", "-XX:FlightRecorderOptions=stackdepth=256", "-Ddd.appsec.enabled=true", "-Ddd.iast.enabled=true", "-Ddd.logs.injection=true", "-Ddd.jmxfetch.enabled=true", "-Ddd.service=gloddy-chat", "-Ddd.env=staging", "-jar", "app.jar"] diff --git a/aws/task-definition-stg.json b/task-definition-stg.json similarity index 100% rename from aws/task-definition-stg.json rename to task-definition-stg.json