mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: Publish Docker image
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
# tags:
|
|
# - 'v*.*.*'
|
|
# pull_request:
|
|
# branches:
|
|
# - sc
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
jobs:
|
|
push_to_registry:
|
|
name: Push Docker image to GitHub Packages
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
packages: write
|
|
contents: read
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v2
|
|
# fetch tags - build will fail elsewise
|
|
- run: git fetch --prune --unshallow --tags
|
|
- name: Log in to GitHub Docker Registry
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Build container image
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
build-args: USE_CUSTOM_SDKS=true,REACT_SDK_REPO="https://github.com/SchildiChat/matrix-react-sdk.git",REACT_SDK_BRANCH="master",JS_SDK_REPO="https://github.com/SchildiChat/matrix-js-sdk.git",JS_SDK_BRANCH="master"
|
|
context: .
|
|
push: true
|
|
tags: ghcr.io/schildichat/schildichat-web:latest
|