Skip to content

Commit

Permalink
fixed merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
alexapostolu committed Mar 2, 2024
2 parents 2bf87f9 + 8086658 commit 33c2c6e
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deployment

on:
push:
branches:
- master

jobs:
deploy:
runs-on: self-hosted
environment:
name: production
url: https://robotics-club.utm.utoronto.ca/
steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: create env files
run: echo "${{ secrets.ENV }}" > .env;

- name: compose build
run: docker compose build

- name: compose up
run: docker compose up -d

- name: cleanup
run: |
docker system prune -a -f
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:lts

WORKDIR ~/website

RUN npm install -g serve
COPY package.json package-lock.json ./
RUN npm ci

COPY . .
RUN npm run build

CMD [ "serve", "build" ]
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3"
services:
website:
build:
dockerfile: Dockerfile
ports:
- "3000:3000"
restart: always

0 comments on commit 33c2c6e

Please sign in to comment.