multi-arch builds

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:
file: Containerfile
tags: git.janky.solutions/finn/lockserver:latest
platforms: linux/amd64,linux/arm64
push: true

View file

@ -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) {