Skip to content

Commit b18a4f5

Browse files
committed
[.github/workflow/rust.yml] Add docker credentials to avoid rate limit
To avoid errors such ``` Error toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit ``` we should add login to our Scylladb docker hub Adding it
1 parent eb14ca8 commit b18a4f5

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

.github/workflows/authenticate_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ jobs:
3131
run: rustup update
3232
- name: Run tests
3333
run: RUST_LOG=trace cargo test --verbose authenticate_superuser -- custom_authentication --ignored
34+
env:
35+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
36+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

.github/workflows/book.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
- uses: actions/checkout@v3
3030
- name: Update rust toolchain
3131
run: rustup update
32+
env:
33+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
34+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
3235
- name: Install mdbook
3336
run: cargo install mdbook --no-default-features
3437
- name: Build the project

.github/workflows/cassandra.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
# A separate step for building to separate measuring time of compilation and testing
2828
- name: Update rust toolchain
2929
run: rustup update
30+
env:
31+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
32+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
3033
- name: Build the project
3134
run: cargo build --verbose --tests --features "full-serialization"
3235
- name: Run tests on cassandra

.github/workflows/rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
run: |
2727
sudo sh -c "echo 2097152 >> /proc/sys/fs/aio-max-nr"
2828
docker compose -f test/cluster/docker-compose.yml up -d --wait
29+
env:
30+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
31+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
2932
- name: Update rust toolchain
3033
run: rustup update
3134
- name: Print rustc version

.github/workflows/tls.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- uses: actions/checkout@v3
3535
- name: Update rust toolchain
3636
run: rustup update
37+
env:
38+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
39+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
3740
- name: Check
3841
run: cargo check --verbose --features "ssl"
3942
working-directory: ${{env.working-directory}}

0 commit comments

Comments
 (0)