Skip to content

Commit

Permalink
Merge pull request #9 from MeeTeamNumdle/feat/setting-deploy-init
Browse files Browse the repository at this point in the history
[ADD] develop 브랜치 배포 자동화 완료
  • Loading branch information
Goder-0 authored Dec 26, 2023
2 parents 638f3ba + 4de3405 commit 9c7d94c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
name: BackEnd - CI/CD

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches: [ "develop" ]

permissions:
contents: read
Expand Down Expand Up @@ -78,7 +76,7 @@ jobs:
# CodeDelploy에 배포를 요청합니다.
- name: Code Deploy 배포 요청
run: aws deploy create-deployment --application-name backend-deploy-group
run: aws deploy create-deployment --application-name meeteam-app
--deployment-config-name CodeDeployDefault.OneAtATime
--deployment-group-name backend-deploy-group
--deployment-group-name meeteam-app
--s3-location bucket=meeteam-backend-bucket,bundleType=zip,key=spring-build.zip
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

Expand Down Expand Up @@ -166,7 +164,6 @@ fabric.properties
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
Expand Down
4 changes: 2 additions & 2 deletions docker/DockerFile → docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### Docker 이미지를 생성할 때 기반이 되는 베이스 이미지를 설정한다.
FROM openjdk:17
### Dockerfile 내에서 사용할 변수 JAR_FILE을 정의한다.
ARG JAR_FILE=build/libs/*.jar
ARG JAR_FILE=*.jar
### JAR_FILE 경로에 해당하는 파일을 Docker 이미지 내부로 복사한다.
COPY ${JAR_FILE} meeteam.jar
### Docker 컨테이너가 시작될 때 실행할 명령을 지정한다.
ENTRYPOINT ["java","-jar","/meeteam.jar"]
ENTRYPOINT ["java","-jar","meeteam.jar"]
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
File renamed without changes.

0 comments on commit 9c7d94c

Please sign in to comment.