From e4d5083b3b821d0bb670d0edbfd0e2ee5717053e Mon Sep 17 00:00:00 2001 From: Atinoda <61033436+Atinoda@users.noreply.github.com> Date: Sat, 10 Feb 2024 22:54:13 +0000 Subject: [PATCH] Create default-nightly.yml --- .github/workflows/default-nightly.yml | 45 +++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/default-nightly.yml diff --git a/.github/workflows/default-nightly.yml b/.github/workflows/default-nightly.yml new file mode 100644 index 0000000..d00415f --- /dev/null +++ b/.github/workflows/default-nightly.yml @@ -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