-
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.
fix: CLIENT_BUILD job description 한국어로 수정
- Loading branch information
1 parent
fafe967
commit d508fec
Showing
1 changed file
with
12 additions
and
12 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: client build | ||
name: release-client CI/CD | ||
on: | ||
push: | ||
branches: | ||
|
@@ -8,47 +8,47 @@ on: | |
|
||
jobs: | ||
build-image: | ||
name: Client image build & Compose & Run on Server | ||
name: release-client CI/CD | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node | ||
- name: Node 설정 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "18.x" | ||
|
||
- name: Cache node modules | ||
- name: node_modules 폴더 캐싱 | ||
uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: "**/client/node_modules" | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/client/yarn.lock') }} | ||
|
||
- name: Install dependencies | ||
- name: node_modules 폴더 캐시가 없다면 dependencies 설치 | ||
working-directory: "./client" | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: yarn | ||
|
||
- name: Client build | ||
- name: Client 소스 빌드 | ||
working-directory: "./client" | ||
run: yarn build | ||
|
||
- name: Login to GitHub Container Registry | ||
- name: GitHub Container Registry 로그인 | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: kumsil1006 | ||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | ||
|
||
- name: Build and push Docker images | ||
- name: Docker images build 및 GitHub Container Registry로 push | ||
uses: docker/[email protected] | ||
with: | ||
push: true | ||
tags: ghcr.io/kumsil1006/oao-client | ||
context: ./client | ||
|
||
- name: Copy Docker Compose into the Server | ||
- name: Docker Compose 파일 운영 서버로 복사 | ||
uses: appleboy/scp-action@master | ||
with: | ||
host: ${{ secrets.ANOTHER_HOST }} | ||
|
@@ -58,7 +58,7 @@ jobs: | |
source: "docker-compose.yml" | ||
target: "oao" | ||
|
||
- name: Run Docker Compose on the Server | ||
- name: 운영 서버에서 Docker Compose 실행 | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.ANOTHER_HOST }} | ||
|
@@ -75,13 +75,13 @@ jobs: | |
docker-compose up -d | ||
docker image prune | ||
- name: Send slack when failed | ||
- name: 실패시 슬랙 메시지 전송 | ||
if: ${{ failure() }} | ||
uses: ./.github/actions/slack-notify | ||
with: | ||
slack_incoming_url: ${{ secrets.SLACK_INCOMING_URL }} | ||
|
||
- name: Send slack if completed | ||
- name: 성공시 슬랙 메시지 전송 | ||
if: ${{ success() }} | ||
uses: ./.github/actions/slack-notify | ||
with: | ||
|