Files
kubernetes/hack
Kubernetes Submit Queue 05944b1d2c Merge pull request #59623 from ixdy/bazel-source-date-epoch
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

bazel: support using SOURCE_DATE_EPOCH to override date

**What this PR does / why we need it**: ports #48708 to apply to the bazel build as well.
Note that bazel already sets `BUILD_TIMESTAMP` using `SOURCE_DATE_EPOCH`, but we have our own timestamp variable, so we need to fix it too.

We could combine this with something like
```shell
SOURCE_DATE_EPOCH=$(git log -1 --format=%cd --date=format:%s)
```
to get closer to repeatable builds. (This uses the timestamp from the last git commit.)

**Release note**:

```release-note
NONE
```

/assign @BenTheElder @mikedanese
2018-02-08 22:34:29 -08:00
..
2018-01-01 22:57:59 -08:00
2017-12-23 13:12:11 -08:00
2018-02-07 21:14:19 -08:00
2017-12-23 13:12:11 -08:00
2017-07-05 14:24:25 -07:00
2017-09-19 18:10:21 +05:30
2018-02-01 07:23:50 -08:00
2018-01-30 09:29:51 -08:00
2017-09-29 15:16:09 -07:00
2017-08-27 22:20:04 -04:00
2018-01-18 20:50:18 -05:00
2018-01-22 15:11:16 -08:00
2018-01-09 23:09:08 -08:00
2018-01-09 23:09:08 -08:00
2017-06-05 13:18:07 -07:00