Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #42

Merged
merged 12 commits into from
Feb 16, 2025
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
frontend/node_modules
backend/node_modules
frontend/node_modules/
backend/node_modules/
17 changes: 17 additions & 0 deletions .github/workflows/check-branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# mainブランチにはdevelopブランチからのPRのみを許可する

name: check branch

on:
pull_request:
branches:
- main

jobs:
check_branch:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Check if PR is from develop
if: github.event.pull_request.head.ref != 'develop'
run: exit 1
3 changes: 1 addition & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM node:18-alpine
FROM node:20

WORKDIR /app

COPY package*.json ./
COPY package-lock.json ./

RUN npm install

COPY . .

CMD ["npm", "run", "dev"]
Loading