File tree 4 files changed +16
-12
lines changed 4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 9
9
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg && \
10
10
mv bazel-archive-keyring.gpg /usr/share/keyrings && \
11
11
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list && \
12
-
13
12
apt-get update && \
14
13
apt-get install -y \
15
- bazel-6.2.0 \
14
+ bazel-6.3.2 \
16
15
git \
17
16
jq && \
18
17
apt-get clean && \
19
18
rm -rf /var/lib/apt/lists/* && \
19
+ ln -s /usr/bin/bazel-6.3.2 /usr/bin/bazel
20
20
21
- ln -s /usr/bin/bazel-6.2.0 /usr/bin/bazel && \
22
- # Unpack Bazel for future use.
23
- bazel version
21
+ RUN mkdir -p /builder /output /workspace && chmod -R 777 /output
24
22
25
23
# rules_python is not happy if bazel runs as root so create a new user
26
24
# https://github.com/bazelbuild/rules_python/pull/713
27
25
# https://github.com/GoogleCloudPlatform/cloud-builders/issues/641
28
- RUN mkdir -p /builder /output /workspace && chmod -R 777 /output
29
26
RUN adduser builder
27
+
28
+ # Allow running sudo without password
29
+ RUN apt-get update && apt-get install -y sudo && apt-get clean && rm -rf /var/lib/apt/lists/* && \
30
+ usermod -aG sudo builder && \
31
+ echo "builder ALL=(ALL) NOPASSWD:ALL" > "/etc/sudoers.d/builder" && chmod 440 "/etc/sudoers.d/builder"
32
+
30
33
USER builder
Original file line number Diff line number Diff line change 12
12
13
13
# This runs on a custom image that has kubectl, gcloud and bazel installed.
14
14
# See Dockerfile.integration-test-image.
15
- - name : " gcr.io/robco-integration-test/integration-test-image@sha256:928573eb6eae7033efd0d62bda58a0e94c4142a3c319eded4a32940c6776a556 "
15
+ - name : " gcr.io/robco-integration-test/integration-test-image@sha256:4861a46d7079ffa53d54999a3df080cb4a919505bb2b4803416ff5fad13efb5f "
16
16
entrypoint : " bash"
17
17
args : ["./.github/ci/integration_test.sh"]
18
18
env :
Original file line number Diff line number Diff line change 9
9
permissions :
10
10
contents : read
11
11
12
+ env :
13
+ USE_BAZEL_VERSION : " 6.3.2"
14
+
12
15
jobs :
13
16
check-bazel :
14
17
runs-on : ubuntu-20.04
31
34
fi
32
35
echo "$ROBCO_INTEGRATION_TEST_GITHUB_ROBOT_JSON_KEY" > robco_integration_test_credentials.json
33
36
- name : Run .github/ci/presubmit.sh
34
- env :
35
- USE_BAZEL_VERSION : " 6.2.0"
36
37
run : ./.github/ci/presubmit.sh
37
38
- name : Get bazel server logs
38
39
if : success() || failure()
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ concurrency:
16
16
group : ${{ github.ref }}
17
17
cancel-in-progress : true
18
18
19
+ env :
20
+ USE_BAZEL_VERSION : " 6.3.2"
21
+
19
22
jobs :
20
23
create_release :
21
24
runs-on : ubuntu-20.04
48
51
echo $ROBCO_NAVTEST_GITHUB_ROBOT_JSON_KEY > robco_navtest_credentials.json
49
52
50
53
- name : Deploy Navtest
51
- env :
52
- USE_BAZEL_VERSION : " 6.2.0"
53
54
run : |
54
55
set -euo pipefail
55
56
67
68
# Now we are ready to create the release.
68
69
- name : Run release_binary.sh
69
70
env :
70
- USE_BAZEL_VERSION : " 6.2.0"
71
71
REPO : ${{ github.repository }}
72
72
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73
73
FULL_SHA : ${{ steps.latest-green.outputs.latest_green }}
You can’t perform that action at this time.
0 commit comments