refactor: move app from apps/kai-sa-cam to the repository root
CD — Kai-Sa-Cam Deployment / deploy (push) Successful in 9s
CD — Kai-Sa-Cam Deployment / deploy (push) Successful in 9s
- move sources, Dockerfile and build config (src, public, package.json, vite/tailwind/postcss/tsconfig, index.html) to the repo root - docker-compose: build context is now "." instead of ./apps/kai-sa-cam - add a .dockerignore (node_modules, dist, media, config, .env, ...) so the larger build context does not ship media, secrets or local node_modules into the image - deploy workflow: replace the apps/kai-sa-cam/** paths filter with paths-ignore so pushes keep triggering deployments - remove the Renovate workflow
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
media
|
||||||
|
config
|
||||||
|
scripts
|
||||||
|
.github
|
||||||
|
.git
|
||||||
|
.env
|
||||||
|
.env.example
|
||||||
|
renovate-cache
|
||||||
|
README.md
|
||||||
|
Makefile
|
||||||
|
docker-compose.yml
|
||||||
@@ -3,12 +3,9 @@ name: CD — Kai-Sa-Cam Deployment
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths:
|
paths-ignore:
|
||||||
- "apps/kai-sa-cam/**"
|
- "**.md"
|
||||||
- "config/kai-sa-go2rtc.yaml"
|
- "renovate.json"
|
||||||
- "docker-compose.yml"
|
|
||||||
- "Makefile"
|
|
||||||
- ".github/workflows/deploy.yml"
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
name: Renovate (Kai-Sa-Cam)
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 4 * * 1"
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: renovate-kai-sa-cam
|
|
||||||
cancel-in-progress: false
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
renovate:
|
|
||||||
runs-on: [kai-sa-cam]
|
|
||||||
steps:
|
|
||||||
- name: Mettre à jour les dépendances
|
|
||||||
env:
|
|
||||||
RENOVATE_PLATFORM: gitea
|
|
||||||
RENOVATE_ENDPOINT: ${{ github.server_url }}
|
|
||||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
|
||||||
RENOVATE_REPOSITORIES: ${{ github.repository }}
|
|
||||||
run: |
|
|
||||||
set -eu
|
|
||||||
mkdir -p /srv/apps/kai-sa-cam/renovate-cache
|
|
||||||
docker run --rm \
|
|
||||||
-e RENOVATE_PLATFORM \
|
|
||||||
-e RENOVATE_ENDPOINT \
|
|
||||||
-e RENOVATE_TOKEN \
|
|
||||||
-e RENOVATE_REPOSITORIES \
|
|
||||||
-e RENOVATE_ONBOARDING=false \
|
|
||||||
-e LOG_LEVEL=info \
|
|
||||||
-v /srv/apps/kai-sa-cam/renovate-cache:/tmp/renovate \
|
|
||||||
ghcr.io/renovatebot/renovate:latest
|
|
||||||
@@ -2,5 +2,4 @@
|
|||||||
*.log
|
*.log
|
||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
dist/
|
||||||
apps/*/dist/
|
|
||||||
media/
|
media/
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ services:
|
|||||||
|
|
||||||
kai-sa-cam:
|
kai-sa-cam:
|
||||||
build:
|
build:
|
||||||
context: ./apps/kai-sa-cam
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: kai-sa-cam
|
container_name: kai-sa-cam
|
||||||
profiles: ["dev", "prod"]
|
profiles: ["dev", "prod"]
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 331 KiB After Width: | Height: | Size: 331 KiB |
Reference in New Issue
Block a user