schildi-web/.github/workflows/publish_docker_image.yml

38 lines
1.2 KiB
YAML
Raw Normal View History

2021-07-08 22:23:51 -04:00
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
2021-07-13 08:42:14 -04:00
tags: ghcr.io/schildichat/schildichat-web:latest