Skip to content

ci: fix stamping for builds performed in CI #24455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ var_11: &yarn_install_loose_lockfile
var_12: &setup_bazel_ci_config
run:
name: "Setting up Bazel configuration for CI"
command: |
echo "import %workspace%/.circleci/bazel.rc" >> ./.bazelrc
# Note: We add the remote config flag to the user bazelrc file that is not tracked
# by Git. This is necessary to avoid stamping builds with `.with-local-changes`.
command: echo "import %workspace%/.circleci/bazel.rc" >> ./.bazelrc.user

# Attaches the release output which has been stored in the workspace to the current job.
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
Expand Down
4 changes: 3 additions & 1 deletion scripts/bazel/setup-remote-execution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ elif [[ ! -z "${GITHUB_ENV}" ]]; then
fi

# Update the project Bazel configuration to always use remote execution.
echo "build --config=remote" >> .bazelrc
# Note: We add the remote config flag to the user bazelrc file that is not tracked
# by Git. This is necessary to avoid stamping builds with `.with-local-changes`.
echo "build --config=remote" >> .bazelrc.user