Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Infra]: 개발 환경 배포 #23

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/stg-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 3 additions & 4 deletions Dockerfile_STG
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"]
File renamed without changes.
Loading