-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.06 KB
/
FE_PIPELINE.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
# name: FE PIPELINE
# on:
# push:
# branches:
# - dev
# paths:
# - 'client/**'
# permissions:
# contents: write
# pages: write
# id-token: write
# jobs:
# fe-pipeline:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Git Config
# run: |
# git config --global user.name 'github-actions[bot]'
# git config --global user.email 'github-actions[bot]@users.noreply.github.com'
# - name: LOG
# run: |
# timestamp=$(date +"%Y-%m-%d_%H-%M-%S")
# log_file="DEPLOY_LOG/client/FE_CD_LOG_$timestamp.log"
# mkdir -p DEPLOY_LOG/client
# echo "프론트엔드 배포 로그" >> "$log_file"
# git add "$log_file"
# git commit -m "release: $timestamp FE 배포 완료"
# git push origin dev
# - name: Merge to Prod
# run: |
# git fetch origin
# git checkout prod || git checkout -b prod
# git merge dev
# git push origin prod