2020-07-15 01:43:48 +03:00
|
|
|
name: Build Owncast
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-07-15 02:37:41 +03:00
|
|
|
- master
|
2020-07-15 01:43:48 +03:00
|
|
|
pull_request:
|
|
|
|
branches: master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
go-version: [1.13.x, 1.14.x]
|
|
|
|
platform: [ubuntu-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Install go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: go build -o owncast *.go
|
|
|
|
|
|
|
|
docker-build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2020-07-15 03:42:06 +03:00
|
|
|
- name: Copy default config file
|
|
|
|
run: cp config-example.yaml config.yaml
|
|
|
|
|
|
|
|
- name: Build Docker image
|
|
|
|
run: docker build -t owncast .
|
|
|
|
|
2020-07-15 01:43:48 +03:00
|
|
|
- name: Run Docker image
|
2020-07-15 04:22:07 +03:00
|
|
|
run: docker run -d -p 8080:8080 -p 1935:1935 owncast
|