Skip to content

Commit

Permalink
feat: action ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Sceat committed Apr 4, 2024
1 parent 27bbf0a commit 3537277
Show file tree
Hide file tree
Showing 6 changed files with 2,852 additions and 3,432 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
push:
branches:
- master

jobs:
push_to_registry:
name: Push Docker image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./Dockerfile
push: false
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM node:13.8-alpine
FROM node:21-alpine

WORKDIR /app

COPY package.json pnpm-lock.yaml ./
RUN npx pnpm install
RUN apk add cmake python3 make curl g++

COPY package.json package-lock.json ./
RUN npm ci

COPY . .

CMD npm run start
CMD npm run start
21 changes: 0 additions & 21 deletions README.md

This file was deleted.

Loading

0 comments on commit 3537277

Please sign in to comment.