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
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
with:
new_branch: ${{ gitea.ref_name }}-deploy
add: argocd/deployment/deployment.yml
author_name: "GitHub Action 🤖"
author_email: gitia@siteworxpro.com
message: "📝🔄 Update deployment manifest with new image tags"
# - name: 💾✅ Commit Updated Manifest
# uses: EndBug/add-and-commit@v9
# with:
# new_branch: ${{ gitea.ref_name }}-deploy
# add: argocd/deployment/deployment.yml
# author_name: "GitHub Action 🤖"
# author_email: gitia@siteworxpro.com
# message: "📝🔄 Update deployment manifest with new image tags"
- name: 🚀✨ Create Pull Request
uses: peter-evans/create-pull-request@v7
@@ -146,3 +146,4 @@ jobs:
head: ${{ gitea.ref_name }}-deploy
commit-message: "📝🔄 Update deployment manifest with new image tags"
labels: deploy
delete-branch: true

View File

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

View File

@@ -12,7 +12,10 @@ import (
func (db *Database) Migrate() {
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 {
log.Fatal(err)
}

View File

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