-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (47 loc) · 1.38 KB
/
SERVER_DEV_BUILD.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: dev-server CI/CD
on:
push:
branches:
- main
paths:
- "server/**"
jobs:
build-image:
name: dev-server CI/CD
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Node 설정
uses: actions/setup-node@v1
with:
node-version: "18.x"
- name: Typescript 파일들 compile
working-directory: "./server"
env:
CI: ""
run: |
yarn install --immutable --immutable-cache --check-cache
yarn build
- name: GitHub Container Registry 로그인
uses: docker/login-action@v1
with:
registry: ghcr.io
username: kumsil1006
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Docker images build 및 GitHub Container Registry로 push
uses: docker/[email protected]
with:
context: ./server
push: true
tags: ghcr.io/kumsil1006/oao-dev-server
- name: 실패시 슬랙 메시지 전송
if: ${{ failure() }}
uses: ./.github/actions/slack-notify
with:
slack_incoming_url: ${{ secrets.SLACK_INCOMING_URL }}
- name: 성공시 슬랙 메시지 전송
if: ${{ success() }}
uses: ./.github/actions/slack-notify
with:
status: success
slack_incoming_url: ${{ secrets.SLACK_INCOMING_URL }}