fix some fucking errors (#18)

Reviewed-on: rrise/reloading-manager#18
Co-authored-by: Ron Rise <ron@siteworxpro.com>
Co-committed-by: Ron Rise <ron@siteworxpro.com>
This commit is contained in:
2025-04-17 17:01:32 -04:00
committed by Siteworx Pro Gitea
parent f12f8b3ef9
commit 7967a54f29
4 changed files with 17 additions and 12 deletions

View File

@@ -128,14 +128,14 @@ jobs:
echo "## Do not edit this file directly. It is auto-generated by the script." > argocd/deployment/deployment.yml echo "## Do not edit this file directly. It is auto-generated by the script." > argocd/deployment/deployment.yml
sed "s|__TAG__|${{ gitea.ref_name }}|g" argocd/template/deployment.yml >> argocd/deployment/deployment.yml sed "s|__TAG__|${{ gitea.ref_name }}|g" argocd/template/deployment.yml >> argocd/deployment/deployment.yml
- name: 💾✅ Commit Updated Manifest # - name: 💾✅ Commit Updated Manifest
uses: EndBug/add-and-commit@v9 # uses: EndBug/add-and-commit@v9
with: # with:
new_branch: ${{ gitea.ref_name }}-deploy # new_branch: ${{ gitea.ref_name }}-deploy
add: argocd/deployment/deployment.yml # add: argocd/deployment/deployment.yml
author_name: "GitHub Action 🤖" # author_name: "GitHub Action 🤖"
author_email: gitia@siteworxpro.com # author_email: gitia@siteworxpro.com
message: "📝🔄 Update deployment manifest with new image tags" # message: "📝🔄 Update deployment manifest with new image tags"
- name: 🚀✨ Create Pull Request - name: 🚀✨ Create Pull Request
uses: peter-evans/create-pull-request@v7 uses: peter-evans/create-pull-request@v7
@@ -145,4 +145,5 @@ jobs:
base: master base: master
head: ${{ gitea.ref_name }}-deploy head: ${{ gitea.ref_name }}-deploy
commit-message: "📝🔄 Update deployment manifest with new image tags" commit-message: "📝🔄 Update deployment manifest with new image tags"
labels: deploy labels: deploy
delete-branch: true

View File

@@ -15,5 +15,6 @@ RUN go build -o app
FROM scratch FROM scratch
COPY --from=build /app/app . COPY --from=build /app/app .
ADD ./migrations /app/migrations
ENTRYPOINT ["/app"] ENTRYPOINT ["/app"]

View File

@@ -12,7 +12,10 @@ import (
func (db *Database) Migrate() { func (db *Database) Migrate() {
sqlDB, err := sql.Open("postgres", db.DSN()) sqlDB, err := sql.Open("postgres", db.DSN())
driver, err := postgres.WithInstance(sqlDB, &postgres.Config{}) driver, err := postgres.WithInstance(sqlDB, &postgres.Config{
MigrationsTable: "schema_migrations",
DatabaseName: db.databaseName,
})
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }

View File

@@ -1,10 +1,10 @@
services: services:
frontend: frontend:
image: scr.siteworxpro.com/reloading-manager/frontend:v0.0.13 image: scr.siteworxpro.com/reloading-manager/frontend:v0.0.14
ports: ports:
- "80:80" - "80:80"
backend: backend:
image: scr.siteworxpro.com/reloading-manager/backend:v0.0.13 image: scr.siteworxpro.com/reloading-manager/backend:v0.0.14
environment: environment:
DB_HOST: 192.168.1.30 DB_HOST: 192.168.1.30
DB_DATABASE: loading DB_DATABASE: loading