Skip to content

Commit

Permalink
CI CD Test
Browse files Browse the repository at this point in the history
  • Loading branch information
dlgocks1 committed Nov 2, 2023
1 parent 99e61dd commit 7a18308
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .ebextensions-dev/00-makeFiles.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ files:
owner: webapp
group: webapp
content: |
kill `ps -ef | grep application | awk '{print $2}'`
java -Dspring.profiles.active=dev -Dfile.encoding=UTF-8 -jar /var/app/current/application.jar
kill `ps -ef | grep cocktaildakk-dev | awk '{print $2}'`
java -Dspring.profiles.active=dev -Dfile.encoding=UTF-8 -jar /var/app/current/cocktaildakk-dev.jar
8 changes: 4 additions & 4 deletions .github/workflows/dev-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
jwt.accesstoken.secret: ${{ secrets.JWT_SECRET_KEY }}
jwt.refreshtoken.secret: ${{ secrets.JWT_REFRESH_KEY }}

- name: Set Environment Domain - Domain DEV Yml
- name: Set Environment Domain - DEV Yml
uses: microsoft/variable-substitution@v1
with:
files: src/main/resources/application-dev.yml
Expand Down Expand Up @@ -55,10 +55,10 @@ jobs:
- name: Generate deployment package
run: |
mkdir -p deploy
cp build/libs/cocktaildakk-0.0.1.jar deploy/application.jar
cp build/libs/*.jar deploy/cocktaildakk-dev.jar
cp Procfile deploy/Procfile
cp -r .ebextensions-dev deploy/.ebextensions
cd deploy && zip -r deploy.zip .
cd deploy && zip -r cocktaildakk-dev-${{steps.current-time.outputs.formattedTime}}-${{github.sha}}.zip .
- name: Deploy Consumer to EB
uses: einaregilsson/beanstalk-deploy@v21
Expand All @@ -69,5 +69,5 @@ jobs:
environment_name: CocktaildakkDev-env
version_label: cocktaildakk-dev-${{steps.current-time.outputs.formattedTime}}-${{github.sha}}
region: ap-northeast-2
deployment_package: deploy/deploy.zip
deployment_package: deploy/cocktaildakk-dev-${{steps.current-time.outputs.formattedTime}}-${{github.sha}}.zip
wait_for_deployment: false
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,8 @@ tasks.withType<Test> {
tasks.withType<Jar> {
enabled = true
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

tasks.jar {
enabled = false
}

0 comments on commit 7a18308

Please sign in to comment.