From 67181e8d032d6e78d9c636aaad63fb1016cc5fb7 Mon Sep 17 00:00:00 2001 From: koomin1227 Date: Mon, 20 Nov 2023 16:28:14 +0900 Subject: [PATCH] =?UTF-8?q?[BE]=20Feat=20:=20CD=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: namewhat99 --- .github/workflows/BE-CD.yml | 20 ++++++++++++++++++++ .github/workflows/{be-ci.yml => BE-CI.yml} | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/BE-CD.yml rename .github/workflows/{be-ci.yml => BE-CI.yml} (97%) diff --git a/.github/workflows/BE-CD.yml b/.github/workflows/BE-CD.yml new file mode 100644 index 0000000..0780699 --- /dev/null +++ b/.github/workflows/BE-CD.yml @@ -0,0 +1,20 @@ +name: Backend CD + +on: + push: + branches: + - main +jobs: + deploy: + runs-on: self-hosted + + steps: + # 해당 레포의 소스코드가 작업 환경에 복제된다 , checkout 의 2번째 버젼 사용 + - name: Checkout repository + uses: actions/checkout@v2 + # node.js 를 설치한다. + - name: run npm + run: | + cd be + npm install + pm2 start npm -- run start:dev \ No newline at end of file diff --git a/.github/workflows/be-ci.yml b/.github/workflows/BE-CI.yml similarity index 97% rename from .github/workflows/be-ci.yml rename to .github/workflows/BE-CI.yml index 8001106..4e0edc0 100644 --- a/.github/workflows/be-ci.yml +++ b/.github/workflows/BE-CI.yml @@ -1,4 +1,4 @@ -name: CI Workflow +name: Backend CI on: pull_request: