-
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.
Merge pull request #329 from Hous-Release/develop
release 1.0.7
- Loading branch information
Showing
568 changed files
with
15,049 additions
and
11,333 deletions.
There are no files selected for viewing
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,70 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: api-deploy-dev | ||
|
||
# Controls when the workflow will run | ||
on: | ||
push: | ||
branches: [ develop ] | ||
paths: | ||
- hous-api/** | ||
- hous-core/** | ||
- hous-common/** | ||
- hous-external/** | ||
|
||
env: | ||
AWS_S3_BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME_DEV }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: create secret files | ||
working-directory: hous-api/src/main/resources | ||
run: | | ||
touch application.yml | ||
touch application-dev.yml | ||
echo "${{ secrets.API_YML }}" >> application.yml | ||
echo "${{ secrets.API_DEV_YML }}" >> application-dev.yml | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '11' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
shell: bash | ||
|
||
# - name: Test with Gradle | ||
# run: ./gradlew test | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew hous-api:bootJar -x test | ||
shell: bash | ||
|
||
- name: Make zip file | ||
run: zip -r ./api-code-deploy.zip ./hous-api/build/libs/*.jar ./scripts/hous-api/* -j | ||
shell: bash | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY_DEV }} | ||
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_KEY_DEV }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Upload to S3 | ||
run: aws s3 cp --region ap-northeast-2 ./api-code-deploy.zip s3://$AWS_S3_BUCKET_NAME/api-code-deploy.zip | ||
|
||
- name: Code Deploy | ||
run: aws deploy create-deployment | ||
--application-name hous-codedeploy | ||
--deployment-config-name CodeDeployDefault.OneAtATime | ||
--deployment-group-name API | ||
--s3-location bucket=$AWS_S3_BUCKET_NAME,bundleType=zip,key=api-code-deploy.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: api-deploy-prod | ||
|
||
# Controls when the workflow will run | ||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- hous-api/** | ||
- hous-core/** | ||
- hous-common/** | ||
- hous-external/** | ||
|
||
env: | ||
AWS_S3_BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME_PROD }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: create secret files | ||
working-directory: hous-api/src/main/resources | ||
run: | | ||
touch application.yml | ||
touch application-prod.yml | ||
echo "${{ secrets.API_YML }}" >> application.yml | ||
echo "${{ secrets.API_PROD_YML }}" >> application-prod.yml | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '11' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
shell: bash | ||
|
||
# - name: Test with Gradle | ||
# run: ./gradlew test | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew hous-api:bootJar -x test | ||
shell: bash | ||
|
||
- name: Make zip file | ||
run: zip -r ./api-code-deploy.zip ./hous-api/build/libs/*.jar ./scripts/hous-api/* -j | ||
shell: bash | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY_PROD }} | ||
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_KEY_PROD }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Upload to S3 | ||
run: aws s3 cp --region ap-northeast-2 ./api-code-deploy.zip s3://$AWS_S3_BUCKET_NAME/api-code-deploy.zip | ||
|
||
- name: Code Deploy | ||
run: aws deploy create-deployment | ||
--application-name hous-codedeploy | ||
--deployment-config-name CodeDeployDefault.OneAtATime | ||
--deployment-group-name API | ||
--s3-location bucket=$AWS_S3_BUCKET_NAME,bundleType=zip,key=api-code-deploy.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: api-pr-check-dev | ||
|
||
# Controls when the workflow will run | ||
on: | ||
pull_request: | ||
branches: [ develop ] | ||
paths: | ||
- hous-api/** | ||
- hous-core/** | ||
- hous-common/** | ||
- hous-external/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: create secret files | ||
working-directory: hous-api/src/main/resources | ||
run: | | ||
touch application.yml | ||
touch application-dev.yml | ||
echo "${{ secrets.API_YML }}" >> application.yml | ||
echo "${{ secrets.API_DEV_YML }}" >> application-dev.yml | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '11' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
shell: bash | ||
|
||
# - name: Test with Gradle | ||
# run: ./gradlew test | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew hous-api:bootJar -x test | ||
shell: bash |
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,46 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: api-pr-check-prod | ||
|
||
# Controls when the workflow will run | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- hous-api/** | ||
- hous-core/** | ||
- hous-common/** | ||
- hous-external/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: create secret files | ||
working-directory: hous-api/src/main/resources | ||
run: | | ||
touch application.yml | ||
touch application-prod.yml | ||
echo "${{ secrets.API_YML }}" >> application.yml | ||
echo "${{ secrets.API_PROD_YML }}" >> application-prod.yml | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '11' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
shell: bash | ||
|
||
# - name: Test with Gradle | ||
# run: ./gradlew test | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew hous-api:bootJar -x test | ||
shell: bash |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.