summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-03-03 05:08:13 -0500
committerGitHub <noreply@github.com>2021-03-03 05:08:13 -0500
commitaed632cb8ca4be2a57e8159041ef31829b3d2b2c (patch)
tree3b2727896ad022b7232244aea77e845f9f65a589 /cmd
parent2a3460b26dc7056189abbbfd19c1f37367fa6b6c (diff)
parent5df6251402af9cc38172edb7802374fcf787d920 (diff)
downloadpodman-aed632cb8ca4be2a57e8159041ef31829b3d2b2c.tar.gz
podman-aed632cb8ca4be2a57e8159041ef31829b3d2b2c.tar.bz2
podman-aed632cb8ca4be2a57e8159041ef31829b3d2b2c.zip
Merge pull request #9580 from rhatdan/timestamp
Fix support for podman build --timestamp
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/images/build.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/podman/images/build.go b/cmd/podman/images/build.go
index d6bf761db..0e1c47399 100644
--- a/cmd/podman/images/build.go
+++ b/cmd/podman/images/build.go
@@ -509,6 +509,11 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *buil
TransientMounts: flags.Volumes,
}
+ if c.Flag("timestamp").Changed {
+ timestamp := time.Unix(flags.Timestamp, 0).UTC()
+ opts.Timestamp = &timestamp
+ }
+
return &entities.BuildOptions{BuildOptions: opts}, nil
}