CI: nostamp config for better cache hits (#9633)

This commit is contained in:
Preston Van Loon 2021-09-20 13:29:41 -04:00 committed by GitHub
parent 2ba29a3cfc
commit cb631360e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -43,3 +43,7 @@ build --flaky_test_attempts=5
# Disable flaky test detection for fuzzing. # Disable flaky test detection for fuzzing.
test:fuzz --flaky_test_attempts=1 test:fuzz --flaky_test_attempts=1
# Better caching
build:nostamp --nostamp
build:nostamp --workspace_status_command=./hack/workspace_status_ci.sh

9
hack/workspace_status_ci.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
# Note: The STABLE_ prefix will force a relink when the value changes when using rules_go x_defs.
echo STABLE_GIT_COMMIT "continuous-integration"
echo DATE "now"
echo DATE_UNIX "0"
echo DOCKER_TAG "ci-foo"
echo STABLE_GIT_TAG "c1000deadbeef"