Skip to content

Commit 1be4c12

Browse files
authored
Switch to ghcr.io image for Synapse (matrix-org#12869)
Due to dockerhub rate-limiting Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 6ca4f67 commit 1be4c12

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/playwright-image-updates.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111

12-
- name: Update matrixdotorg/synapse image
12+
- name: Update synapse image
1313
run: |
1414
docker pull "$IMAGE"
1515
INSPECT=$(docker inspect --format='{{index .RepoDigests 0}}' "$IMAGE")
1616
DIGEST=${INSPECT#*@}
1717
sed -i "s/const DOCKER_TAG.*/const DOCKER_TAG = \"develop@$DIGEST\";/" playwright/plugins/homeserver/synapse/index.ts
1818
env:
19-
IMAGE: matrixdotorg/synapse:develop
19+
IMAGE: ghcr.io/element-hq/synapse:develop
2020

2121
- name: Create Pull Request
2222
id: cpr

docs/playwright.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ need to have Docker installed and working in order to run the Playwright tests.
2929
There are a few different ways to run the tests yourself. The simplest is to run:
3030

3131
```shell
32-
docker pull matrixdotorg/synapse:develop
32+
docker pull ghcr.io/element-hq/synapse:develop
3333
yarn run test:playwright
3434
```
3535

playwright/plugins/homeserver/synapse/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ import { Docker } from "../../docker";
2525
import { HomeserverConfig, HomeserverInstance, Homeserver, StartHomeserverOpts, Credentials } from "..";
2626
import { randB64Bytes } from "../../utils/rand";
2727

28-
// Docker tag to use for `matrixdotorg/synapse` image.
28+
// Docker tag to use for synapse docker image.
2929
// We target a specific digest as every now and then a Synapse update will break our CI.
3030
// This digest is updated by the playwright-image-updates.yaml workflow periodically.
31-
const DOCKER_TAG = "develop@sha256:37e50604408ec07e1add96a38c3c97559e321a9f2764bd4d132bc2fb172c73e6";
31+
const DOCKER_TAG = "develop@sha256:f8613aeda996b6e9c2235c8141cc8e9a65eb25ed7bcd932505e5dd3c9231b748";
3232

3333
async function cfgDirFromTemplate(opts: StartHomeserverOpts): Promise<Omit<HomeserverConfig, "dockerUrl">> {
3434
const templateDir = path.join(__dirname, "templates", opts.template);
@@ -110,7 +110,7 @@ export class Synapse implements Homeserver, HomeserverInstance {
110110
console.log(`Starting synapse with config dir ${synCfg.configDir}...`);
111111
const dockerSynapseParams = ["-v", `${synCfg.configDir}:/data`, "-p", `${synCfg.port}:8008/tcp`];
112112
const synapseId = await this.docker.run({
113-
image: `matrixdotorg/synapse:${DOCKER_TAG}`,
113+
image: `ghcr.io/element-hq/synapse:${DOCKER_TAG}`,
114114
containerName: `react-sdk-playwright-synapse`,
115115
params: dockerSynapseParams,
116116
cmd: ["run"],

0 commit comments

Comments
 (0)