diff --git a/.github/workflows/mq-cpp.yaml b/.github/workflows/mq-cpp.yaml index 657bf9fc..2a6f0be8 100644 --- a/.github/workflows/mq-cpp.yaml +++ b/.github/workflows/mq-cpp.yaml @@ -41,6 +41,19 @@ jobs: registry_user: ${{ github.actor }} registry_pass: ${{ secrets.GITHUB_TOKEN }} + build-telemetry-postgres: + if: true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: "./.github/actions/build-image" + with: + image: postgres + dir: telemetry + registry: ghcr.io/${{ github.repository_owner }} + registry_user: ${{ github.actor }} + registry_pass: ${{ secrets.GITHUB_TOKEN }} + build-producer-cpp-dev: if: true needs: build-base-debian @@ -76,6 +89,7 @@ jobs: needs: - build-producer-cpp - build-postgres + - build-telemetry-postgres uses: ./.github/workflows/mq-run-test.yaml with: name: cpp diff --git a/.github/workflows/mq-golang.yaml b/.github/workflows/mq-golang.yaml index 49e8b085..5a139e00 100644 --- a/.github/workflows/mq-golang.yaml +++ b/.github/workflows/mq-golang.yaml @@ -41,6 +41,19 @@ jobs: registry_user: ${{ github.actor }} registry_pass: ${{ secrets.GITHUB_TOKEN }} + build-telemetry-postgres: + if: true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: "./.github/actions/build-image" + with: + image: postgres + dir: telemetry + registry: ghcr.io/${{ github.repository_owner }} + registry_user: ${{ github.actor }} + registry_pass: ${{ secrets.GITHUB_TOKEN }} + build-producer-golang-dev: if: true needs: build-base-debian @@ -76,6 +89,7 @@ jobs: needs: - build-producer-golang - build-postgres + - build-telemetry-postgres uses: ./.github/workflows/mq-run-test.yaml with: name: golang diff --git a/.github/workflows/mq-haskell.yaml b/.github/workflows/mq-haskell.yaml index b89f3110..8f7b28fc 100644 --- a/.github/workflows/mq-haskell.yaml +++ b/.github/workflows/mq-haskell.yaml @@ -42,6 +42,19 @@ jobs: registry_user: ${{ github.actor }} registry_pass: ${{ secrets.GITHUB_TOKEN }} + build-telemetry-postgres: + if: true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: "./.github/actions/build-image" + with: + image: postgres + dir: telemetry + registry: ghcr.io/${{ github.repository_owner }} + registry_user: ${{ github.actor }} + registry_pass: ${{ secrets.GITHUB_TOKEN }} + build-base-haskell: if: true needs: build-base-debian @@ -92,6 +105,7 @@ jobs: needs: - build-producer-haskell - build-postgres + - build-telemetry-postgres uses: ./.github/workflows/mq-run-test.yaml with: name: haskell diff --git a/.github/workflows/mq-python.yaml b/.github/workflows/mq-python.yaml index 0649ec07..bd04a8f8 100644 --- a/.github/workflows/mq-python.yaml +++ b/.github/workflows/mq-python.yaml @@ -41,6 +41,19 @@ jobs: registry_user: ${{ github.actor }} registry_pass: ${{ secrets.GITHUB_TOKEN }} + build-telemetry-postgres: + if: true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: "./.github/actions/build-image" + with: + image: postgres + dir: telemetry + registry: ghcr.io/${{ github.repository_owner }} + registry_user: ${{ github.actor }} + registry_pass: ${{ secrets.GITHUB_TOKEN }} + build-producer-python-dev: if: true needs: build-base-debian @@ -76,6 +89,7 @@ jobs: needs: - build-producer-python - build-postgres + - build-telemetry-postgres uses: ./.github/workflows/mq-run-test.yaml with: name: python diff --git a/.github/workflows/mq-run-test.yaml b/.github/workflows/mq-run-test.yaml index 9c00c418..1d266d96 100644 --- a/.github/workflows/mq-run-test.yaml +++ b/.github/workflows/mq-run-test.yaml @@ -37,10 +37,24 @@ jobs: --health-interval 5s --health-timeout 1s --health-retries 5 + + telemetry-postgres: + image: ghcr.io/${{ github.repository_owner }}/code-golf_telemetry_postgres:${{ inputs.pg_tag }} + credentials: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + env: + POSTGRES_HOST_AUTH_METHOD: trust + options: >- + --health-cmd pg_isready + --health-interval 5s + --health-timeout 1s + --health-retries 5 steps: - name: make check env: PG_TEST_DSN: postgres-test:5432 + TEST_TELEMETRY_POSTGRES: telemetry-postgres:5432 # I have no idea why github sets HOME=/github/home. Its root owned # and there is nothing useful. Hypothetically it could be a volume # (related to /__w (workdir)) and share data between the host and diff --git a/.github/workflows/mq-rust.yaml b/.github/workflows/mq-rust.yaml index b8f3bf06..60ec2b6e 100644 --- a/.github/workflows/mq-rust.yaml +++ b/.github/workflows/mq-rust.yaml @@ -28,6 +28,19 @@ jobs: registry_user: ${{ github.actor }} registry_pass: ${{ secrets.GITHUB_TOKEN }} + build-telemetry-postgres: + if: true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: "./.github/actions/build-image" + with: + image: postgres + dir: telemetry + registry: ghcr.io/${{ github.repository_owner }} + registry_user: ${{ github.actor }} + registry_pass: ${{ secrets.GITHUB_TOKEN }} + build-base-debian-testing: if: true runs-on: ubuntu-latest @@ -76,6 +89,7 @@ jobs: needs: - build-producer-rust - build-postgres + - build-telemetry-postgres uses: ./.github/workflows/mq-run-test.yaml with: name: rust