-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.24 KB
/
node.js.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
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: self-hosted
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install Dependencies
run: |
npm ci
nohup npm run dev
# docker-build:
# runs-on: self-hosted
# needs: build
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v3
# - name: Build Docker Image
# run: |
# sudo docker build -t instagram-reimaged-fe:latest .
# sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
# sudo docker push salman4425/instagram-frontend-fe:instagram-reimaged-fe:latest
# deploy:
# runs-on: self-hosted
# needs: docker-build
# steps:
# - name: Deploy with Docker
# run: |
# sudo docker pull instagram-reimaged-fe:latest
# sudo docker run -d -p 3000:3001 --name instagram-reimaged-fe:latest