diff --git a/.github/workflows/authenticate_test.yml b/.github/workflows/authenticate_test.yml index b6a825166..9b1b77bb5 100644 --- a/.github/workflows/authenticate_test.yml +++ b/.github/workflows/authenticate_test.yml @@ -25,9 +25,13 @@ jobs: ports: - 9042:9042 options: --health-cmd "cqlsh --username cassandra --password cassandra --debug" --health-interval 5s --health-retries 30 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} steps: - uses: actions/checkout@v3 - name: Update rust toolchain run: rustup update - name: Run tests run: RUST_LOG=trace cargo test --verbose authenticate_superuser -- custom_authentication --ignored + diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 4d3caa506..a37385215 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -25,6 +25,9 @@ jobs: ports: - 9042:9042 options: --health-cmd "cqlsh --debug scylladb" --health-interval 5s --health-retries 10 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} steps: - uses: actions/checkout@v3 - name: Update rust toolchain diff --git a/.github/workflows/cassandra.yml b/.github/workflows/cassandra.yml index 4926ece5d..ddac70463 100644 --- a/.github/workflows/cassandra.yml +++ b/.github/workflows/cassandra.yml @@ -24,6 +24,9 @@ jobs: - name: Setup 3-node Cassandra cluster run: | docker compose -f test/cluster/cassandra/docker-compose.yml up -d --wait + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} # A separate step for building to separate measuring time of compilation and testing - name: Update rust toolchain run: rustup update diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b16887fe2..6623e3555 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,10 +22,18 @@ jobs: timeout-minutes: 60 steps: - uses: actions/checkout@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Setup 3-node Scylla cluster run: | sudo sh -c "echo 2097152 >> /proc/sys/fs/aio-max-nr" docker compose -f test/cluster/docker-compose.yml up -d --wait + env: + DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} - name: Update rust toolchain run: rustup update - name: Print rustc version diff --git a/.github/workflows/tls.yml b/.github/workflows/tls.yml index 65e0721b5..4960f8646 100644 --- a/.github/workflows/tls.yml +++ b/.github/workflows/tls.yml @@ -30,6 +30,9 @@ jobs: --health-retries 10 env: working-directory: ./scylla + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} steps: - uses: actions/checkout@v3 - name: Update rust toolchain