Merge branch 'feat/gitea-actions'
All checks were successful
Test Workflow / build (push) Successful in 28s
Test Workflow / build (pull_request) Successful in 28s

This commit is contained in:
John Galt
2025-07-31 18:25:11 +02:00
3 changed files with 35 additions and 6 deletions

29
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Test Workflow
on:
push:
branches:
- feat/gitea-actions
pull_request:
jobs:
build:
runs-on: n100-ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Build Docker image
run: docker build -t dailytrends:latest .

View File

@ -11,5 +11,5 @@ COPY package*.json ./
RUN npm install --production RUN npm install --production
COPY --from=builder /app/dist ./dist COPY --from=builder /app/dist ./dist
EXPOSE 3000 EXPOSE 3000
CMD ["node", "dist/index.js"] CMD ["node", "dist/server.js"]