Implement Nightly builds as Github workflow (#10)
parent
5b6477ddf3
commit
ef85657f3c
@ -0,0 +1,41 @@
|
||||
name: Docker Nightly Build
|
||||
on:
|
||||
# push:
|
||||
schedule:
|
||||
- cron: '22 12 * * *'
|
||||
|
||||
jobs:
|
||||
nightly-build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Maximize build space
|
||||
uses: easimon/maximize-build-space@master
|
||||
with:
|
||||
overprovision-lvm: 'true'
|
||||
remove-dotnet: 'true'
|
||||
remove-android: 'true'
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
-
|
||||
name: Set build date
|
||||
run: echo "BUILD_DATE=NIGHTLY $(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
|
||||
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
push: true
|
||||
target: default
|
||||
build-args: BUILD_DATE=${{ env.BUILD_DATE }}
|
||||
tags: atinoda/text-generation-webui:default-nightly
|
Loading…
Reference in New Issue