-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (55 loc) · 1.99 KB
/
main.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
60
61
name: "온폴 CI/CD 실습"
on:
push:
branches:
- feat/api
tags:
- release.*
jobs:
Job1:
runs-on: ubuntu-latest
steps:
- run: echo "내용...${{ github.repository }}"
- uses: actions/checkout@v4
- name: Setup
uses: actions/setup-node@v4
with:
node-version: 18
- name: .env setup
run: |
echo "DB_HOST=${{ secrets.DB_HOST }}" >> .env
echo "DB_USER=${{ secrets.DB_USER }}" >> .env
echo "DB_PASSWORD=${{ secrets.DB_PASSWORD }}" >> .env
echo "DB_DATABASE=${{ secrets.DB_DATABASE }}" >> .env
echo "S3_KEYID=${{ secrets.S3_KEYID }}" >> .env
echo "S3_PRIVATEKEY=${{ secrets.S3_PRIVATEKEY }}" >> .env
echo "S3_REGION=${{ secrets.S3_REGION }}" >> .env
echo "BUCKET_NAME=${{ secrets.BUCKET_NAME }}" >> .env
echo "JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}" >> .env
env:
DB_HOST: ${{ secrets.DB_HOST }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_DATABASE: ${{ secrets.DB_DATABASE }}
S3_KEYID: ${{ secrets.S3_KEYID }}
S3_PRIVATEKEY: ${{ secrets.S3_PRIVATEKEY }}
S3_REGION: ${{ secrets.S3_REGION }}
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }}
# run: |
# echo "${{ secrets.DB_HOST }}"
# echo "${{ secrets.DB_USER }}"
# echo "${{ secrets.DB_PASSWORD }}"
# echo "${{ secrets.DB_DATABASE }}"
# echo "${{ secrets.S3_KEYID }}"
# echo "${{ secrets.S3_PRIVATEKEY }}"
# echo "${{ secrets.S3_REGION }}"
# echo "${{ secrets.BUCKET_NAME }}"
- name: Install dependencies and run script
run: |
npm install
node main.js
# 백엔드
# 업데이트 하는 과정을 명령어로 구성하기
# ex. nodemon -> git pull
# f12 full size screenshot