Skip to content

Update model_info.json #25

Update model_info.json

Update model_info.json #25

Workflow file for this run

name: Build
on:
push:
paths:
- 'model_info.json'
jobs:
package:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Python setup
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
-
name: Install python dependencies
run: pip install -r requirements.txt
-
name: Run Chassis code to prepare context
run: python package.py
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: ./build
push: true
tags: ghcr.io/${{ github.repository }}:latest
deploy:
needs: [package]
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Python setup
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
-
name: Install python dependencies
run: pip install modzy-sdk>=0.11.6
-
name: Deploy model container to Modzy
env:
CONTAINER: ghcr.io/${{ github.repository }}:latest
MODZY_URL: ${{ secrets.MODZY_URL }}
MODZY_API_KEY: ${{ secrets.MODZY_API_KEY }}
run: python deploy.py