forked from element-hq/element-web
-
Notifications
You must be signed in to change notification settings - Fork 12
37 lines (37 loc) · 1.17 KB
/
publish_docker_image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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