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