summary refs log tree commit diff
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2023-03-20 16:28:29 +0000
committerGitHub <noreply@github.com>2023-03-20 16:28:29 +0000
commit63e25010d619868cd96000763f3733131ef0e6ef (patch)
tree2d828a57f9a905dfb4b02cacad11d2d6cee1cf17
parentAdd /versions flag for MSC3952. (#15293) (diff)
downloadsynapse-63e25010d619868cd96000763f3733131ef0e6ef.tar.xz
Mirror images to the GitHub Container Registry (`ghcr.io/matrix-org/synapse`). (#15281)
-rw-r--r--.github/workflows/docker.yml12
-rw-r--r--changelog.d/15281.docker1
2 files changed, 12 insertions, 1 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 4bbe5decf8..602f5e1759 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -10,6 +10,7 @@ on:
 
 permissions:
   contents: read
+  packages: write
 
 jobs:
   build:
@@ -34,11 +35,20 @@ jobs:
           username: ${{ secrets.DOCKERHUB_USERNAME }}
           password: ${{ secrets.DOCKERHUB_TOKEN }}
 
+      - name: Log in to GHCR
+        uses: docker/login-action@v2
+        with:
+          registry: ghcr.io
+          username: ${{ github.repository_owner }}
+          password: ${{ secrets.GITHUB_TOKEN }}
+
       - name: Calculate docker image tag
         id: set-tag
         uses: docker/metadata-action@master
         with:
-          images: matrixdotorg/synapse
+          images: |
+            docker.io/matrixdotorg/synapse
+            ghcr.io/matrix-org/synapse
           flavor: |
             latest=false
           tags: |
diff --git a/changelog.d/15281.docker b/changelog.d/15281.docker
new file mode 100644
index 0000000000..6990430ef4
--- /dev/null
+++ b/changelog.d/15281.docker
@@ -0,0 +1 @@
+Mirror images to the GitHub Container Registry (`ghcr.io/matrix-org/synapse`).
\ No newline at end of file