Skip to content

Commit ef4f21a

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 ef4f21a

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

.github/workflows/authenticate_test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ jobs:
2525
ports:
2626
- 9042:9042
2727
options: --health-cmd "cqlsh --username cassandra --password cassandra --debug" --health-interval 5s --health-retries 30
28+
env:
29+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
30+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
2831
steps:
2932
- uses: actions/checkout@v3
3033
- name: Update rust toolchain
3134
run: rustup update
3235
- name: Run tests
3336
run: RUST_LOG=trace cargo test --verbose authenticate_superuser -- custom_authentication --ignored
37+

.github/workflows/book.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
ports:
2626
- 9042:9042
2727
options: --health-cmd "cqlsh --debug scylladb" --health-interval 5s --health-retries 10
28+
env:
29+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
30+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
2831
steps:
2932
- uses: actions/checkout@v3
3033
- name: Update rust toolchain

.github/workflows/cassandra.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
- name: Setup 3-node Cassandra cluster
2525
run: |
2626
docker compose -f test/cluster/cassandra/docker-compose.yml up -d --wait
27+
env:
28+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
29+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
2730
# A separate step for building to separate measuring time of compilation and testing
2831
- name: Update rust toolchain
2932
run: rustup update

.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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
--health-retries 10
3131
env:
3232
working-directory: ./scylla
33+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
34+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
3335
steps:
3436
- uses: actions/checkout@v3
3537
- name: Update rust toolchain

0 commit comments

Comments
 (0)