yolo push (#14)

Reviewed-on: rrise/reloading-manager#14
Co-authored-by: Ron Rise <ron@siteworxpro.com>
Co-committed-by: Ron Rise <ron@siteworxpro.com>
This commit is contained in:
2025-04-17 15:13:05 -04:00
committed by Siteworx Pro Gitea
parent 5d8991861e
commit 4a1b9597a2
6 changed files with 31 additions and 2 deletions

View File

@@ -131,7 +131,8 @@ jobs:
- name: 📝🔧 Update Deployment Manifest
run: |
sed "s|__TAG__|${{ gitea.ref_name }}|g" argocd/template/deployment.yml > argocd/deployment/deployment.yml
echo "## Do not edit this file directly. It is auto-generated by the script.\n\n" > argocd/deployment/deployment.yml
sed "s|__TAG__|${{ gitea.ref_name }}|g" argocd/template/deployment.yml >> argocd/deployment/deployment.yml
- name: 💾✅ Commit Updated Manifest
uses: EndBug/add-and-commit@v9

View File

@@ -0,0 +1,10 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: reloading-cm
namespace: reloading
data:
DB_HOST: "192.168.1.30"
DB_DATABASE: "loading"
DB_USERNAME: "loading"
DB_PASSWORD: "loading"

View File

@@ -1,3 +1,4 @@
## Do not edit this file directly. It is auto-generated by the script.
apiVersion: apps/v1
kind: Deployment
metadata:

View File

@@ -22,3 +22,6 @@ spec:
image: scr.siteworxpro.com/reloading-manager/backend:__TAG__
ports:
- containerPort: 8080
envFrom:
- configMapRef:
name: reloading-cm

View File

@@ -37,7 +37,7 @@ func (*Database) DSN() string {
dbUser := DbUser.GetEnvString("postgres")
dbPassword := DbPassword.GetEnvString("password")
extraParams := "?sslmode=disable"
extraParams := "?sslmode=prefer"
return fmt.Sprintf("postgres://%s:%s@%s:5432/%s%s", dbUser, dbPassword, dbHost, dbDatabase, extraParams)
}

View File

@@ -0,0 +1,14 @@
services:
frontend:
image: scr.siteworxpro.com/reloading-manager/frontend:v0.0.9
ports:
- "80:80"
backend:
image: scr.siteworxpro.com/reloading-manager/backend:v0.0.9
environment:
DB_HOST: 192.168.1.30
DB_DATABASE: loading
DB_USERNAME: loading
DB_PASSWORD: loading
ports:
- "8080:8080"