owncast/.github/workflows/docker-nightly.yaml

25 lines
614 B
YAML
Raw Normal View History

2021-03-30 04:07:29 +02:00
name: Build nightly docker
on:
workflow_dispatch:
2021-03-30 04:07:29 +02:00
schedule:
2021-03-31 02:37:58 +02:00
- cron: "0 2 * * *"
2021-03-30 04:07:29 +02:00
jobs:
Docker:
runs-on: ubuntu-latest
steps:
- name: Log into GitHub Container Registry
env:
GH_CR_PAT: ${{ secrets.GH_CR_PAT }}
2021-03-30 04:07:29 +02:00
run: echo "${{ secrets.GH_CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
if: env.GH_CR_PAT != null
2021-03-30 04:07:29 +02:00
- uses: actions/checkout@v2
- name: Setup and run
env:
GH_CR_PAT: ${{ secrets.GH_CR_PAT }}
run: cd build/release && ./docker-nightly.sh
if: env.GH_CR_PAT != null