mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-04-28 04:06:10 +00:00
Build and publish docker image from main branch (#227)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
name: Build and publish docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and publish docker image
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
push: ${{ github.ref == 'refs/heads/main' }}
|
||||
tags: ghcr.io/matrix-org/matrix-authentication-service:sha-${{ github.sha }}
|
||||
Reference in New Issue
Block a user