]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci(crdb): pull stable crdb images from crdb docker repository
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 18 Mar 2025 15:21:04 +0000 (16:21 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 8 Apr 2025 13:45:39 +0000 (14:45 +0100)
.github/workflows/tests.yml

index cd5441a267d6365818a57aa7a079e55f9be8d3ca..6175ad7231eba0f43bdc21264653bc1e17bf265f 100644 (file)
@@ -385,10 +385,11 @@ jobs:
           #   curl -fsSL -X GET \
           #   https://us-docker.pkg.dev/v2/cockroach-cloud-images/cockroachdb/cockroach/tags/list \
           #   | jq .tags | egrep 'latest-[^-]+-build' | sort
-          - {impl: c, crdb: "latest-master-build", python: "3.13"}
-          - {impl: c, crdb: "latest-v25.1-build", python: "3.13", libpq: newest}
-          - {impl: c, crdb: "latest-v24.3-build", python: "3.8", libpq: newest}
-          - {impl: python, crdb: "latest-v23.2-build", python: "3.12"}
+          - {impl: c, crdb: "master", python: "3.13"}
+          - {impl: c, crdb: "v25.1", python: "3.13", libpq: newest}
+          - {impl: c, crdb: "v24.3", python: "3.8", libpq: newest}
+          - {impl: python, crdb: "v23.2", python: "3.12"}
+
     env:
       PSYCOPG_IMPL: ${{ matrix.impl }}
       DEPS: ./psycopg[test] ./psycopg_pool
@@ -410,8 +411,13 @@ jobs:
         # Note: this would love to be a service, but I don't see a way to pass
         # the args to the docker run command line.
         run: |
-          docker pull ${CRDB_REPO}:${{ matrix.crdb }}
-          docker run --rm -d --name crdb -p 26257:26257 ${CRDB_REPO}:${{ matrix.crdb }} \
+          if [[ ${{ matrix.crdb }} == "master" ]]; then
+            image=us-docker.pkg.dev/cockroach-cloud-images/cockroachdb/cockroach:latest-master-build
+          else
+            image=cockroachdb/cockroach:latest-${{ matrix.crdb }}
+          fi
+          docker pull ${image}
+          docker run --rm -d --name crdb -p 26257:26257 ${image} \
             start-single-node --insecure
 
       - name: Install the wanted libpq version