Skip to content

Commit

Permalink
[All] release: v2.0.0 (#992) (#993)
Browse files Browse the repository at this point in the history
## 📌 관련 이슈

- closed: #992
  • Loading branch information
SeongHoonC authored May 23, 2024
2 parents 31a4abd + dd1051a commit 2a60e81
Show file tree
Hide file tree
Showing 1,466 changed files with 48,624 additions and 11,971 deletions.
40 changes: 27 additions & 13 deletions .github/workflows/cd-back-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ on:
push:
branches:
- dev
paths: 'backend/**'

paths:
- 'backend/**'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
working-directory: backend
Expand All @@ -16,28 +20,38 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 리포지토리 체크아웃
- name: repository checkout
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_TOKEN }}

- name: 자바 설치
- name: install java 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'

- name: gradlew 권한 부여
- name: assign grant gradlew
run: chmod +x gradlew

- name: Gradle Test
run: ./gradlew test
- name: bootJar with gradle
run: ./gradlew bootJar

- name: Docker Login
uses: docker/[email protected]
with:
username: ${{ vars.DOCKER_HUB_DEV_USERNAME }}
password: ${{ secrets.DOCKER_HUB_DEV_LOGIN_TOKEN }}

- name: Build And Push docker image
run: docker build --platform linux/arm64/v8 --push --tag ${{ vars.DOCKER_DEV_TAG }} .

- name: trigger to jenkins dev cd
uses: appleboy/jenkins-action@master
- name: run application use ssh
uses: appleboy/ssh-action@master
with:
url: ${{ secrets.JENKINS_URL }}
user: "festago"
token: ${{ secrets.JENKINS_API_TOKEN}}
job: "festago-dev-cd"
host: ${{ vars.FESTAGO_DEV_IP }}
username: ${{ vars.FESTAGO_DEV_USERNAME }}
key: ${{secrets.FESTAGO_DEV_SSH_KEY}}
script_stop: true
script: ${{ vars.FESTAGO_DEV_DEPLOY_COMMAND }}
48 changes: 48 additions & 0 deletions .github/workflows/cd-back-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CD-Back-Prod

on:
workflow_dispatch:

defaults:
run:
working-directory: backend

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: repository checkout
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_TOKEN }}

- name: install java 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'

- name: assign grant gradlew
run: chmod +x gradlew

- name: bootJar with gradle
run: ./gradlew bootJar

- name: Docker Login
uses: docker/[email protected]
with:
username: ${{ vars.DOCKER_HUB_PROD_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PROD_LOGIN_TOKEN }}

- name: Build And Push docker image
run: docker build --platform linux/arm64/v8 --push --tag ${{ vars.DOCKER_PROD_TAG }} .

- name: run application use ssh
uses: appleboy/ssh-action@master
with:
host: ${{ vars.FESTAGO_PROD_IP }}
username: ${{ vars.FESTAGO_PROD_USERNAME }}
key: ${{secrets.FESTAGO_PROD_SSH_KEY}}
script_stop: true
script: ${{ vars.FESTAGO_PROD_DEPLOY_COMMAND }}
35 changes: 23 additions & 12 deletions .github/workflows/ci-back.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: CI-Back
name: CI Back

on:
pull_request:
branches:
- dev
- main
paths: 'backend/**'
- feat/**
paths:
- backend/**

defaults:
run:
Expand All @@ -15,33 +17,42 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 리포지토리 체크아웃
- name: Repository checkout
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_TOKEN }}

- name: 자바 설치
- name: Setup java 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'

- name: gradlew 권한 부여
- name: Cache gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Assign grant gradlew
run: chmod +x gradlew

- name: Gradle build
run: ./gradlew build
- name: Test with gradle
run: ./gradlew --info test

- name: 테스트 결과 PR에 커멘트 등록
uses: EnricoMi/publish-unit-test-result-action@v1
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: '**/build/test-results/test/TEST-*.xml'

- name: 테스트 실패 Check 코멘트 등록
uses: mikepenz/action-junit-report@v3
- name: Publish test report
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
token: ${{ github.token }}
40 changes: 0 additions & 40 deletions .github/workflows/closed-issue-notification.yml

This file was deleted.

106 changes: 0 additions & 106 deletions .github/workflows/closed-pr-notification.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/opend-issue-notification.yml

This file was deleted.

Loading

0 comments on commit 2a60e81

Please sign in to comment.