Skip to content

Commit b39dbbc

Browse files
ci: use ghcr image mirrors for postgres and redis services (#6556)
Replaces Docker Hub image references in CI with their `ghcr.io/getsentry/image-mirror-*` equivalents, consistent with how `getsentry/sentry` pulls service containers. ## Changes - `postgres` → `ghcr.io/getsentry/image-mirror-library-postgres:17-alpine` - `redis` → `ghcr.io/getsentry/image-mirror-library-redis:7.0.8-bullseye` `mysql` and `docker:dind` are not available in the getsentry mirror ([getsentry/image-mirror](https://github.com/getsentry/image-mirror)) so those are left unchanged. The change is made in the Jinja template (`scripts/split_tox_gh_actions/templates/test_group.jinja`); the three generated workflow files (`test-integrations-dbs.yml`, `test-integrations-tasks.yml`, `test-integrations-web-1.yml`) are regenerated by running `python scripts/split_tox_gh_actions/split_tox_gh_actions.py`. --- [View Session in Sentry](https://sentry.sentry.io/traces/?project=4510944073809921&query=gen_ai.conversation.id%3A%22slack%3AC09M26BC6A1%3A1781169862.709999%22) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
1 parent 1d6341f commit b39dbbc

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/test-integrations-dbs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
os: [ubuntu-22.04]
2222
services:
2323
postgres:
24-
image: postgres
24+
image: ghcr.io/getsentry/image-mirror-library-postgres:17-alpine
2525
env:
2626
POSTGRES_PASSWORD: sentry
2727
# Set health checks to wait until postgres has started

.github/workflows/test-integrations-tasks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
os: [ubuntu-22.04]
2222
services:
2323
redis:
24-
image: redis
24+
image: ghcr.io/getsentry/image-mirror-library-redis:7.0.8-bullseye
2525
options: >-
2626
--health-cmd "redis-cli ping"
2727
--health-interval 10s

.github/workflows/test-integrations-web-1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
os: [ubuntu-22.04]
2222
services:
2323
postgres:
24-
image: postgres
24+
image: ghcr.io/getsentry/image-mirror-library-postgres:17-alpine
2525
env:
2626
POSTGRES_PASSWORD: sentry
2727
# Set health checks to wait until postgres has started

scripts/split_tox_gh_actions/templates/test_group.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{% endif %}
1818
{% if needs_postgres %}
1919
postgres:
20-
image: postgres
20+
image: ghcr.io/getsentry/image-mirror-library-postgres:17-alpine
2121
env:
2222
POSTGRES_PASSWORD: sentry
2323
# Set health checks to wait until postgres has started
@@ -32,7 +32,7 @@
3232
{% endif %}
3333
{% if needs_redis %}
3434
redis:
35-
image: redis
35+
image: ghcr.io/getsentry/image-mirror-library-redis:7.0.8-bullseye
3636
options: >-
3737
--health-cmd "redis-cli ping"
3838
--health-interval 10s

0 commit comments

Comments
 (0)