Skip to content

Commit

Permalink
fix: [close #161] Force upgrade image digest label
Browse files Browse the repository at this point in the history
* fix missing digest on image force upgrade

* fix writing old image digest to recipe
  • Loading branch information
taukakao authored Dec 13, 2023
1 parent 8c0d484 commit 24951bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ func (s *ABSystem) RunOperation(operation ABSystemOperation) error {
PrintVerbose("ABSystemRunOperation:err(1.1): %s", err)
return NoUpdateError
}
imageDigest = s.CurImage.Digest
PrintVerbose("ABSystemRunOperation: No update available but --force is set. Proceeding...")
}
} else {
Expand Down Expand Up @@ -627,7 +628,7 @@ func (s *ABSystem) RunOperation(operation ABSystemOperation) error {
}
} else {
imageName = settings.Cnf.FullImageName + "@" + imageDigest
labels["ABRoot.BaseImageDigest"] = s.CurImage.Digest
labels["ABRoot.BaseImageDigest"] = imageDigest
}

// Delete old image
Expand Down

0 comments on commit 24951bc

Please sign in to comment.