Skip to content

Commit

Permalink
#57 [MERGE] merge 리팩토링 최종
Browse files Browse the repository at this point in the history
  • Loading branch information
05AM committed Aug 14, 2023
2 parents ad297c6 + 9c8af11 commit c69bf70
Show file tree
Hide file tree
Showing 61 changed files with 1,687 additions and 1,182 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tattour-Server-Dev CI
on:
pull_request:
branches: [ "dev" ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: checkout
uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'

- name: make application.properties
run: |
#mkdir ./server/src/main/resources
cd ./server/src/main/resources
touch ./application.yaml
echo "${{ secrets.TATTOUR_DEV_APPLICATION }}" >> ./application.yaml
cat ./application.yaml
shell: bash


- name: Grant execute permission for gradlew
run: chmod +x ./server/gradlew

- name: Build with Gradle
run: |
cd ./server
./gradlew build -x test
80 changes: 80 additions & 0 deletions .github/workflows/cicd_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Tattour-Server-Dev CD
on:
push:
branches: [ "dev" ]

env:
S3_BUCKET_NAME: tattour-storage

jobs:
build:
name: Code deployment
runs-on: ubuntu-latest

steps:

- name: checkout
uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'

- name: make application.properties
run: |
#mkdir ./server/src/main/resources
cd ./server/src/main/resources
touch ./application.yaml
echo "${{ secrets.TATTOUR_DEV_APPLICATION }}" >> ./application.yaml
cat ./application.yaml
shell: bash


- name: Grant execute permission for gradlew
run: chmod +x ./server/gradlew

- name: Build with Gradle
run: |
cd ./server
./gradlew clean build -x test
- name: Make Directory
run: mkdir -p deploy

- name: Copy Jar
run: cp ./server/build/libs/*.jar ./deploy

- name: Copy appspec.yml
run: cp appspec.yml ./deploy

- name: Copy script
run: cp ./scripts/*.sh ./deploy

- name: Make zip file
run: zip -r ./tattour_server_dev.zip ./deploy
shell: bash

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_CODEDEPLOY_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_CODEDEPLOY_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2

- name: Upload to S3
run: aws s3 cp --region ap-northeast-2 ./tattour_server_dev.zip s3://tattour-storage\

# Deploy
- name: Deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_CODEDEPLOY_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CODEDEPLOY_SECRET_ACCESS_KEY }}
run:
aws deploy create-deployment
--application-name tattour-codeDepoly-test
--deployment-group-name tattour-codeDepoly-test-group
--file-exists-behavior OVERWRITE
--s3-location bucket=tattour-storage,bundleType=zip,key=tattour_server_dev.zip
--region ap-northeast-2
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2023-08-13T01:02:36+0900",
comments = "version: 1.5.4.Final, compiler: javac, environment: Java 11.0.19 (Amazon.com Inc.)"
date = "2023-08-14T23:31:38+0900",
comments = "version: 1.5.4.Final, compiler: javac, environment: Java 17.0.6 (Amazon.com Inc.)"
)
@Component
public class EntityDtoMapperImpl implements EntityDtoMapper {
Expand Down
Loading

0 comments on commit c69bf70

Please sign in to comment.