feature: Fixes all backup and API related things to make everything work in production.
All checks were successful
Release code / build (push) Successful in 14m13s
All checks were successful
Release code / build (push) Successful in 14m13s
This commit is contained in:
parent
c2eb2d15aa
commit
d334878599
4 changed files with 8 additions and 5 deletions
|
@ -2,7 +2,7 @@ FROM golang:latest AS build
|
|||
WORKDIR /build
|
||||
COPY . /build
|
||||
RUN bash build.sh
|
||||
FROM scratch AS run
|
||||
FROM busybox:stable AS run
|
||||
WORKDIR /app
|
||||
COPY --from=build /build/backends.prod.json /app/backends.json
|
||||
COPY --from=build /build/api/api /app/hermes
|
||||
|
|
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"compress/gzip"
|
||||
"encoding/base64"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
|
@ -249,7 +250,7 @@ func backupRestoreEntrypoint(cCtx *cli.Context) error {
|
|||
Name: backend.Name,
|
||||
Description: backend.Description,
|
||||
Backend: backend.Backend,
|
||||
BackendParameters: backend.BackendParameters,
|
||||
BackendParameters: base64.StdEncoding.EncodeToString([]byte(backend.BackendParameters)),
|
||||
}
|
||||
|
||||
if err := dbcore.DB.Create(backendDatabase).Error; err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue