You've already forked reloading-manager
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:
@@ -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
|
||||
@@ -145,4 +145,5 @@ jobs:
|
||||
base: master
|
||||
head: ${{ gitea.ref_name }}-deploy
|
||||
commit-message: "📝🔄 Update deployment manifest with new image tags"
|
||||
labels: deploy
|
||||
labels: deploy
|
||||
delete-branch: true
|
||||
@@ -15,5 +15,6 @@ RUN go build -o app
|
||||
FROM scratch
|
||||
|
||||
COPY --from=build /app/app .
|
||||
ADD ./migrations /app/migrations
|
||||
|
||||
ENTRYPOINT ["/app"]
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user