mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-05-11 04:07:05 +00:00
27 lines
644 B
YAML
27 lines
644 B
YAML
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 }}
|