Skip to content

Commit

Permalink
fix: CLIENT_BUILD job description 한국어로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
NaGyeong-Park authored Nov 23, 2022
1 parent fafe967 commit d508fec
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/CLIENT_BUILD.yml
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:
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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:
Expand Down

0 comments on commit d508fec

Please sign in to comment.