Skip to content

Commit

Permalink
chore: 배포 자동화 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
SSung023 committed Apr 7, 2024
1 parent 93d9bf4 commit bb59ca5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
# run: aws deploy push --application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }} --ignore-hidden-files --s3-location s3://$AWS_S3_BUCKET/cicdtest/$GITHUB_SHA.zip --source .

- name: EC2에 배포
run: aws deploy create-deployment --application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }} --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name ${{ env.AWS_CODE_DEPLOY_GROUP }} --s3-location bucket=$AWS_S3_BUCKET,key=cicdtest/$GITHUB_SHA.zip,bundleType=zip
run: aws deploy create-deployment --application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }} --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name ${{ env.AWS_CODE_DEPLOY_GROUP }} --s3-location bucket=$AWS_S3_BUCKET,key=$GITHUB_SHA.zip,bundleType=zip



10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ dependencies {
testAnnotationProcessor 'org.projectlombok:lombok'
}

bootJar {
archiveBaseName = 'GitGetApplication'
archiveFileName = 'GitGetApplication.jar'
archiveVersion = "0.0.1"
}

jar {
enabled = false
}

tasks.named('test') {
useJUnitPlatform()
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

PROJECT_ROOT="/home/ubuntu/app"
JAR_FILE="$PROJECT_ROOT/spring-webapp.jar"
JAR_FILE="$PROJECT_ROOT/GitGetApplication.jar"

APP_LOG="$PROJECT_ROOT/application.log"
ERROR_LOG="$PROJECT_ROOT/error.log"
Expand Down
2 changes: 1 addition & 1 deletion scripts/stop.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

PROJECT_ROOT="/home/ubuntu/app"
JAR_FILE="$PROJECT_ROOT/application.jar"
JAR_FILE="$PROJECT_ROOT/GitGetApplication.jar"

DEPLOY_LOG="$PROJECT_ROOT/deploy.log"

Expand Down

0 comments on commit bb59ca5

Please sign in to comment.