You've already forked reloading-manager
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:
@@ -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
|
||||
|
||||
10
argocd/deployment/configmap.yml
Normal file
10
argocd/deployment/configmap.yml
Normal 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"
|
||||
@@ -1,3 +1,4 @@
|
||||
## Do not edit this file directly. It is auto-generated by the script.
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
|
||||
@@ -22,3 +22,6 @@ spec:
|
||||
image: scr.siteworxpro.com/reloading-manager/backend:__TAG__
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: reloading-cm
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user