-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (59 loc) · 2.19 KB
/
develop.yaml
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
55
56
57
58
59
name: CD-DEVELOPMENT
on:
push:
branches:
# 설치를 위한 Git Branch명을 적어 주세요
- develop
jobs:
cd:
runs-on: sre-runner
strategy:
matrix:
node-version: [ 18.12.1 ]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache yarn modules
id: cache-yarn-modules
uses: actions/cache@v3
with:
path: ./yarn
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Run build
run: yarn ci && yarn app build:dev
env:
CI: false
# - name: Docker build
# run: docker build --build-arg VERSION_TEXT=${VERSION_TEXT} -f Dockerfile -t registry.dev.kurlycorp.kr/cps/la-cms-front-react:dev-dev03 .
# - name : Docker Login
# run: docker login --username develop --password ${{ secrets.DEV_DOCKER_LOGIN_PASSWORD }} registry.dev.kurlycorp.kr
# shell: bash
# - name: Run docker push
# run: docker push registry.dev.kurlycorp.kr/cps/la-cms-front-react:dev-dev03
# shell: bash
# - name: Rancher auto deploy
# uses: sekassel-research/[email protected]
# with:
# rancher_url: https://rancher.dev.kurly.services
# rancher_access: ${{ secrets.RANCHER_ACCESS }}
# rancher_key: ${{ secrets.RANCHER_KEY }}
# project_id: 1a5
# stack_name: la-cms-front-react-web
# service_name: la-cms-front-react-dev03
# docker_image: registry.dev.kurlycorp.kr/cps/la-cms-front-react:dev-dev03
- name: Send slack message
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
author_name: Rancher 배포 - DEV 환경 (lacms-dev03.dev.kurlycorp.kr)
fields: repo,message,commit,author #action,eventName,ref,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()