multi-arch builds
This commit is contained in:
parent
350fc3b339
commit
433ea42b15
2 changed files with 4 additions and 1 deletions
|
@ -16,4 +16,5 @@ jobs:
|
|||
with:
|
||||
file: Containerfile
|
||||
tags: git.janky.solutions/finn/lockserver:latest
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
|
|
|
@ -24,8 +24,10 @@ var C = Config{
|
|||
SessionSecrets: []JSONBytes{},
|
||||
}
|
||||
|
||||
var configFiles = []string{"lockserver.json", "/etc/lockserver.json"}
|
||||
|
||||
func Load() error {
|
||||
for _, path := range []string{"lockserver.json", "/etc/lockserver.json"} {
|
||||
for _, path := range configFiles {
|
||||
err := load(path)
|
||||
if err != nil {
|
||||
if errors.Is(err, os.ErrNotExist) {
|
||||
|
|
Loading…
Reference in a new issue