Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Team-Lecue/Lecue-Client
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
Arooming committed Jan 9, 2024
2 parents 9f321c0 + 6919933 commit 3b52de5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CD

on:
push:
branches: [ "develop" ]

env:
HOST: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
KEY: ${{ secrets.SSH_KEY }}

jobs:
deploy-ci:
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./deploy/Dockerfile
push: true
tags: lequu/lequu-client:latest
15 changes: 15 additions & 0 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:18.17.0-slim

WORKDIR /app

RUN npm install -g serve

COPY package*.json .

RUN npm install --legacy-peer-deps

COPY . .

RUN npm run build

CMD ["serve", "-s", "build"]

0 comments on commit 3b52de5

Please sign in to comment.