A (very) simple, text only chatbot using Society AI inference endpoint
add workflow script
Some checks failed
society-ai-hub-container-cache Actions Demo / build (push) Failing after 1m15s
Some checks failed
society-ai-hub-container-cache Actions Demo / build (push) Failing after 1m15s
This commit is contained in:
parent
c0e83fe75a
commit
4443574cad
47
.gitea/workflows/gradio-text-to-image.yaml
Normal file
47
.gitea/workflows/gradio-text-to-image.yaml
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
name: society-ai-hub-container-cache Actions Demo
|
||||||
|
run-name: ${{ society-ai-hub-container-cache.actor }} is building an AI Application 🚀
|
||||||
|
on:
|
||||||
|
repository_dispatch:
|
||||||
|
types:
|
||||||
|
- created
|
||||||
|
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Login to ECR
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ vars.ECR_REGISTRY }}
|
||||||
|
username: ${{ vars.AWS_ACCESS_KEY_ID }}
|
||||||
|
password: ${{ vars.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
- name: configure AWS Credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v4
|
||||||
|
with:
|
||||||
|
aws-region: ${{ vars.AWS_REGION }}
|
||||||
|
aws-access-key-id: ${{ vars.AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ vars.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: https://github.com/actions/checkout@v4
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Build and push Docker image
|
||||||
|
id: docker_build
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: true
|
||||||
|
platforms: "linux/amd64"
|
||||||
|
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-to: type=local,dest=/tmp/
|
||||||
|
- name: Deploy App
|
||||||
|
run: |
|
||||||
|
helm -n default upgrade --install ${{ env.REPOSITORY_UUID }} /charts/gradio-app --set imageDigest=${{ steps.docker_build.outputs.digest }} --set uuid=${{ env.REPOSITORY_UUID }}
|
Loading…
x
Reference in New Issue
Block a user