A (very) simple, text only chatbot using Society AI inference endpoint

Update .gitea/workflows/gradio-text-chatbot.yaml
Some checks failed
society-ai-hub-container-cache Actions Demo / build (push) Failing after 19s

This commit is contained in:
Hezi Aharon 2024-11-06 07:23:28 +00:00
parent 54c9ecf6c2
commit 0982fe8db9

@ -11,19 +11,31 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Login to ECR - name: Login to container registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ vars.ECR_REGISTRY }} registry: ${{ vars.ECR_REGISTRY }}
- name: configure AWS Credentials env:
DEBUG: 0 # Suppresses debug output
- name: Configure credentials
uses: aws-actions/configure-aws-credentials@v4 uses: aws-actions/configure-aws-credentials@v4
with: with:
aws-region: ${{ vars.AWS_REGION }} aws-region: ${{ vars.AWS_REGION }}
- name: Set up QEMU env:
uses: https://github.com/actions/checkout@v4 ACTIONS_STEP_DEBUG: false # Suppresses debug output
- name: Set up Docker Buildx
- name: Set up build emulator
uses: actions/checkout@v4
with:
fetch-depth: 0 # Minimum output verbosity
- name: Set up builder
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Build and push Docker image with:
debug: false # Suppresses debug output
- name: Build container image
id: docker_build id: docker_build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
@ -32,10 +44,12 @@ jobs:
push: true push: true
platforms: "linux/amd64" platforms: "linux/amd64"
tags: "${{ vars.ECR_REGISTRY }}/gradio-app:${{ env.REPOSITORY_UUID }}" tags: "${{ vars.ECR_REGISTRY }}/gradio-app:${{ env.REPOSITORY_UUID }}"
# cache-from: type=s3,region=${{ vars.AWS_REGION }},bucket=society-ai-hub-container-cache,mode=max
# cache-to: type=s3,region=${{ vars.AWS_REGION }},bucket=society-ai-hub-container-cache,mode=max,compress=true
cache-from: type=local,src=/tmp/ cache-from: type=local,src=/tmp/
cache-to: type=local,dest=/tmp/ cache-to: type=local,dest=/tmp/
env:
BUILDKIT_PROGRESS: plain # Plain progress to suppress details
- name: Deploy App - name: Deploy App
run: | run: |
helm -n default upgrade --install ${{ env.REPOSITORY_UUID }} /charts/gradio-app --set imageDigest=${{ steps.docker_build.outputs.digest }} --set uuid=${{ env.REPOSITORY_UUID }} helm -n default upgrade --install ${{ env.REPOSITORY_UUID }} /charts/gradio-app \
--set imageDigest=${{ steps.docker_build.outputs.digest }} --set uuid=${{ env.REPOSITORY_UUID }} > /dev/null 2>&1