Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightly workflows refactor #39

Merged
merged 5 commits into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/arc-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build arc-nightly
#on:
# push:
# schedule:
# - cron: '22 12 * * *'

jobs:
nightly-build-and-push-default:
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=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV

-
name: Set version
run: echo "VERSION_TAG=nightly" >> $GITHUB_ENV

-
name: Build and push - default
uses: docker/build-push-action@v4
with:
push: true
target: default-arc
build-args: BUILD_DATE=${{ env.BUILD_DATE }},VERSION_TAG=${{ env.VERSION_TAG }}
tags: atinoda/text-generation-webui:default-arc-nightly
45 changes: 45 additions & 0 deletions .github/workflows/cpu-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build cpu-nightly
on:
# push:
schedule:
- cron: '22 12 * * *'

jobs:
nightly-build-and-push-default:
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=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV

-
name: Set version
run: echo "VERSION_TAG=nightly" >> $GITHUB_ENV

-
name: Build and push - default
uses: docker/build-push-action@v4
with:
push: true
target: default-cpu
build-args: BUILD_DATE=${{ env.BUILD_DATE }},VERSION_TAG=${{ env.VERSION_TAG }}
tags: atinoda/text-generation-webui:default-cpu-nightly
45 changes: 45 additions & 0 deletions .github/workflows/default-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build default-nightly
on:
# push:
schedule:
- cron: '22 12 * * *'

jobs:
nightly-build-and-push-default:
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=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV

-
name: Set version
run: echo "VERSION_TAG=nightly" >> $GITHUB_ENV

-
name: Build and push - default
uses: docker/build-push-action@v4
with:
push: true
target: default-nvidia
build-args: BUILD_DATE=${{ env.BUILD_DATE }},VERSION_TAG=${{ env.VERSION_TAG }}
tags: atinoda/text-generation-webui:default-nightly,atinoda/text-generation-webui:default-nvidia-nightly
45 changes: 45 additions & 0 deletions .github/workflows/rocm-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build rocm-nightly
#on:
# push:
# schedule:
# - cron: '22 12 * * *'

jobs:
nightly-build-and-push-default:
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=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV

-
name: Set version
run: echo "VERSION_TAG=nightly" >> $GITHUB_ENV

-
name: Build and push - default
uses: docker/build-push-action@v4
with:
push: true
target: default-rocm
build-args: BUILD_DATE=${{ env.BUILD_DATE }},VERSION_TAG=${{ env.VERSION_TAG }}
tags: atinoda/text-generation-webui:default-rocm-nightly