Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 63e2501

Browse files
authored
Mirror images to the GitHub Container Registry (ghcr.io/matrix-org/synapse). (#15281)
1 parent 25006ac commit 63e2501

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/docker.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
permissions:
1212
contents: read
13+
packages: write
1314

1415
jobs:
1516
build:
@@ -34,11 +35,20 @@ jobs:
3435
username: ${{ secrets.DOCKERHUB_USERNAME }}
3536
password: ${{ secrets.DOCKERHUB_TOKEN }}
3637

38+
- name: Log in to GHCR
39+
uses: docker/login-action@v2
40+
with:
41+
registry: ghcr.io
42+
username: ${{ github.repository_owner }}
43+
password: ${{ secrets.GITHUB_TOKEN }}
44+
3745
- name: Calculate docker image tag
3846
id: set-tag
3947
uses: docker/metadata-action@master
4048
with:
41-
images: matrixdotorg/synapse
49+
images: |
50+
docker.io/matrixdotorg/synapse
51+
ghcr.io/matrix-org/synapse
4252
flavor: |
4353
latest=false
4454
tags: |

changelog.d/15281.docker

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Mirror images to the GitHub Container Registry (`ghcr.io/matrix-org/synapse`).

0 commit comments

Comments
 (0)