-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
163 changed files
with
2,334 additions
and
1,424 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @IW-MOON @nature1216 @junhaesung |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: inspiration | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
S3_BUCKET_NAME: ygt-bucket | ||
PROJECT_LOCATION: deploy | ||
PROJECT_NAME: inspiration | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
shell: bash | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build | ||
shell: bash | ||
|
||
- name: Make Directory for deliver | ||
run: mkdir deploy | ||
|
||
- name: Copy Jar | ||
run: cp ./module-web/build/libs/*.jar ./deploy/ | ||
|
||
# appspec.yml Copy | ||
- name: Copy appspec | ||
run: cp ./appspec.yml ./deploy/ | ||
|
||
# Dockerfile Copy | ||
- name: Copy Dockerfile | ||
run: | | ||
cp ./dockerfile ./deploy/ | ||
cp ./docker-compose.yml ./deploy/ | ||
# script file Copy | ||
- name: Copy shell | ||
run: | | ||
mkdir deploy/scripts | ||
cp ./scripts/* ./deploy/scripts/ | ||
- name: Make zip file | ||
run: zip -r ./$GITHUB_SHA.zip ./deploy/ | ||
shell: bash | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Upload to S3 | ||
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://$S3_BUCKET_NAME/$PROJECT_LOCATION/$PROJECT_NAME/$GITHUB_SHA.zip | ||
|
||
- name: Code Deploy | ||
run: aws deploy create-deployment --application-name Ygt-CodeDeploy --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name Ygt-Develop-Deploy --s3-location bucket=$S3_BUCKET_NAME,bundleType=zip,key=$PROJECT_LOCATION/$PROJECT_NAME/$GITHUB_SHA.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
FROM openjdk:17.0.1-jdk-slim | ||
WORKDIR /root | ||
COPY ./build/libs/${project_name}-${version}.jar . | ||
|
||
CMD java -jar -Duser.timezone=Asia/Seoul -Dspring.profiles.active=${active} ${project_name}-${version}.jar | ||
CMD java -jar ${JAVA_OPTS} -Duser.timezone=Asia/Seoul -Dspring.profiles.active=${ACTIVE} ${PROJECT_NAME}-${VERSION}.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
gradleGitPropertiesPluginVersion=2.4.1 | ||
embeddedRedisVersion=0.7.3 | ||
apacheCommonsCsvVersion=1.9.0 | ||
slackSdkVersion=1.24.0 | ||
okhttpVersion=4.10.0 | ||
awsJavaSdkVersion=1.12.281 | ||
jasyptVersion=3.0.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.