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

Commit

Permalink
Mirror images to the GitHub Container Registry (`ghcr.io/matrix-org/s…
Browse files Browse the repository at this point in the history
…ynapse`). (#15281)
  • Loading branch information
reivilibre authored Mar 20, 2023
1 parent 25006ac commit 63e2501
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

permissions:
contents: read
packages: write

jobs:
build:
Expand All @@ -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: |
Expand Down
1 change: 1 addition & 0 deletions changelog.d/15281.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mirror images to the GitHub Container Registry (`ghcr.io/matrix-org/synapse`).

0 comments on commit 63e2501

Please sign in to comment.