Compare commits

..

No commits in common. "main" and "feat/sequelize-utc-time" have entirely different histories.

6 changed files with 14 additions and 16 deletions

View file

@ -10,20 +10,20 @@ jobs:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: https://git.holtlabs.xyz/nholtware/workflows/node-checks@v1
- uses: https://git.holtlabs.xyz/nholtware/workflows/lint-checks@v1
- uses: http://192.168.1.230:3000/nholtware/workflows/node-checks@main
- uses: http://192.168.1.230:3000/nholtware/workflows/lint-checks@main
deploy:
needs: checks
runs-on: host
steps:
- uses: actions/checkout@v4
- uses: https://git.holtlabs.xyz/nholtware/workflows/build-push@v1
- uses: http://192.168.1.230:3000/nholtware/workflows/build-push@main
with:
app-name: demo-app
registry-user: ${{ secrets.REGISTRY_USER }}
registry-token: ${{ secrets.REGISTRY_TOKEN }}
- uses: https://git.holtlabs.xyz/nholtware/workflows/gitops-bump@v1
- uses: http://192.168.1.230:3000/nholtware/workflows/gitops-bump@main
with:
app-name: demo-app
gitops-token: ${{ secrets.GITOPS_TOKEN }}

View file

@ -8,5 +8,5 @@ jobs:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: https://git.holtlabs.xyz/nholtware/workflows/node-checks@v1
- uses: https://git.holtlabs.xyz/nholtware/workflows/lint-checks@v1
- uses: http://192.168.1.230:3000/nholtware/workflows/node-checks@main
- uses: http://192.168.1.230:3000/nholtware/workflows/lint-checks@main

View file

@ -7,12 +7,12 @@ on:
- synchronize
- reopened
branches:
- "**"
- '**'
push:
branches:
- "**"
- "!main"
- "!master"
- '**'
- '!main'
- '!master'
jobs:
test:

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
node_modules/
dist/
session-*.md

View file

@ -7,15 +7,14 @@ COPY tsconfig.json ./
COPY src ./src
RUN npm run build
# Runtime stage: production deps only
# Runtime stage: no dev deps (this service has zero runtime deps)
FROM node:22-slim
WORKDIR /app
ENV NODE_ENV=production
ARG GIT_SHA=dev
ENV GIT_SHA=${GIT_SHA}
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
COPY --from=build /app/dist ./dist
COPY package.json ./
USER node
EXPOSE 3000
CMD ["node", "dist/bin/server.js"]
CMD ["node", "dist/index.js"]

View file

@ -6,7 +6,7 @@ Minimal TypeScript microservice proving out the homelab CI/CD pipeline:
push to main
-> Forgejo Actions (nholtware/workflows composite actions)
checks: npm ci + lint + test (docker label)
build: docker build + push -> git.holtlabs.xyz/nholtware/demo-app:<sha>
build: docker build + push -> 192.168.1.230:3000/nholtware/demo-app:<sha>
deploy: kustomize edit set image -> commit to nholtware/gitops
-> ArgoCD syncs gitops -> k3s
-> served by Traefik at Host: demo-app.k3s.local