Skip to content

Commit 10a6fa2

Browse files
committed
Use new CircleCI image
1 parent 2907f55 commit 10a6fa2

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.circleci/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ RUN apt-get update && apt-get upgrade
9292

9393
RUN apt-get install -y openjdk-11-jdk python2.7 python3 golang-go
9494

95-
RUN curl -L -o /usr/bin/bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.3.0/bazelisk-linux-amd64 \
95+
RUN curl -L -o /usr/bin/bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.12.0/bazelisk-linux-amd64 \
9696
&& sudo chmod +x /usr/bin/bazel
9797

9898
RUN cd /usr/bin && ln -s python3 python

.circleci/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## `build.sh`
2+
3+
Anytime you change the Ruby version you must push a new image to Docker Hub.
4+
5+
Email [email protected] to be added to bazelruby org on hub.docker.com.
6+
7+
### To Upgrade
8+
9+
Change the ruby version in the `Dockerfile` and run:
10+
11+
```bash
12+
cd .circleci
13+
./build.sh
14+
```

.circleci/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ echo
1212

1313
set -x
1414

15-
docker build . -t bazelruby/ruby-$RUBY_VERSION
15+
docker build --platform linux/x86_64 . -t bazelruby/ruby-$RUBY_VERSION
1616

1717
docker push bazelruby/ruby-$RUBY_VERSION
1818

0 commit comments

Comments
 (0)