Compare commits
24 Commits
99c452837f
...
feat/gitea
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
695e7b8677 | ||
|
|
fda08829de | ||
|
|
06601eb990 | ||
|
|
0df3dca93e | ||
|
|
6e26d8a2e6 | ||
|
|
38cf946e33 | ||
|
|
1a72753347 | ||
|
|
ddc4ed70cf | ||
|
|
1e66cc80af | ||
|
|
ab5941adb1 | ||
|
|
d77b13ef4e | ||
|
|
0e9c055787 | ||
|
|
f3c7d9f6a0 | ||
|
|
0e9979ff83 | ||
|
|
c40e84d4d4 | ||
|
|
29a5b2632d | ||
|
|
672ad04835 | ||
|
|
9915b2f91f | ||
|
|
500a7f6e40 | ||
|
|
997e96af19 | ||
|
|
55040b252c | ||
|
|
8e71061234 | ||
|
|
3e44f4e282 | ||
|
|
91b4b15731 |
29
.github/workflows/build.yml
vendored
Normal file
29
.github/workflows/build.yml
vendored
Normal 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 .
|
||||||
@@ -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"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user