Skip to content

Commit f775fc4

Browse files
fix(build): account for imagesSpec.clearCmd/clearEntrypoint when generating image tag
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
1 parent 6ba7af1 commit f775fc4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/build/stage/image_spec.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,9 @@ func (s *ImageSpecStage) PrepareImage(ctx context.Context, _ Conveyor, _ contain
113113
return nil
114114
}
115115

116-
const imageSpecStageCacheVersion = "2"
117-
118116
func (s *ImageSpecStage) GetDependencies(_ context.Context, _ Conveyor, _ container_backend.ContainerBackend, _, _ *StageImage, _ container_backend.BuildContextArchiver) (string, error) {
119117
var args []string
120118

121-
args = append(args, imageSpecStageCacheVersion)
122119
args = append(args, s.imageSpec.Author)
123120
args = append(args, fmt.Sprint(s.imageSpec.ClearHistory))
124121

@@ -133,7 +130,9 @@ func (s *ImageSpecStage) GetDependencies(_ context.Context, _ Conveyor, _ contai
133130
args = append(args, sortSliceWithNewSlice(s.imageSpec.Expose)...)
134131
args = append(args, s.imageSpec.User)
135132
args = append(args, strings.Join(s.imageSpec.Cmd, " "))
133+
args = append(args, fmt.Sprint(s.imageSpec.ClearCmd))
136134
args = append(args, strings.Join(s.imageSpec.Entrypoint, " "))
135+
args = append(args, fmt.Sprint(s.imageSpec.ClearEntrypoint))
137136
args = append(args, s.imageSpec.WorkingDir)
138137
args = append(args, s.imageSpec.StopSignal)
139138
args = append(args, fmt.Sprint(s.imageSpec.Healthcheck))

0 commit comments

Comments
 (0)