mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-09 04:45:31 +02:00
Update go-containerregistry to master
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user