multi-arch builds
All checks were successful
/ build-container (push) Successful in 2m52s

This commit is contained in:
Finn 2024-04-23 17:53:17 -07:00
parent 350fc3b339
commit 433ea42b15
2 changed files with 4 additions and 1 deletions

View file

@ -16,4 +16,5 @@ jobs:
with: with:
file: Containerfile file: Containerfile
tags: git.janky.solutions/finn/lockserver:latest tags: git.janky.solutions/finn/lockserver:latest
platforms: linux/amd64,linux/arm64
push: true push: true

View file

@ -24,8 +24,10 @@ var C = Config{
SessionSecrets: []JSONBytes{}, SessionSecrets: []JSONBytes{},
} }
var configFiles = []string{"lockserver.json", "/etc/lockserver.json"}
func Load() error { func Load() error {
for _, path := range []string{"lockserver.json", "/etc/lockserver.json"} { for _, path := range configFiles {
err := load(path) err := load(path)
if err != nil { if err != nil {
if errors.Is(err, os.ErrNotExist) { if errors.Is(err, os.ErrNotExist) {