Update go-containerregistry to master

This commit is contained in:
Vincent Latombe
2020-03-13 09:07:48 +01:00
parent f55c34ab92
commit 4de9575cf0
5 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -280,8 +280,8 @@ func Time(img v1.Image, t time.Time) (v1.Image, error) {
// Copy basic config over
cfg.Architecture = ocf.Architecture
cfg.Author = ocf.Author
cfg.OS = ocf.OS
cfg.OSVersion = ocf.OSVersion
cfg.Config = ocf.Config
// Strip away timestamps from the config file
@@ -92,6 +92,12 @@ func (bt *bearerTransport) refresh() error {
if err != nil {
return err
}
if auth.RegistryToken != "" {
bt.bearer.RegistryToken = auth.RegistryToken
return nil
}
var content []byte
if auth.IdentityToken != "" {
// If the secret being stored is an identity token,