Skip to content

Commit

Permalink
chore: support gcr.io keychain for registry auth
Browse files Browse the repository at this point in the history
Support gcr.io keychain for registry auth.

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Dec 19, 2024
1 parent 1389813 commit 1729190
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/image-factory/cmd/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/google/go-containerregistry/pkg/authn"
"github.com/google/go-containerregistry/pkg/authn/github"
"github.com/google/go-containerregistry/pkg/name"
"github.com/google/go-containerregistry/pkg/v1/google"
"github.com/google/go-containerregistry/pkg/v1/remote"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
Expand Down Expand Up @@ -328,6 +329,7 @@ func remoteOptions() []remote.Option {
authn.NewMultiKeychain(
authn.DefaultKeychain,
github.Keychain,
google.Keychain,
),
),
}
Expand Down

0 comments on commit 1729190

Please sign in to comment.