Mirror images to the GitHub Container Registry (`ghcr.io/matrix-org/synapse`). (#15281)

This commit is contained in:
reivilibre 2023-03-20 16:28:29 +00:00 committed by GitHub
parent 25006acc17
commit 63e25010d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -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: |

1
changelog.d/15281.docker Normal file
View File

@ -0,0 +1 @@
Mirror images to the GitHub Container Registry (`ghcr.io/matrix-org/synapse`).