Skip to content

chore: pin torch==2.11.0 to matching base image and prevent CUDA bloat #11

chore: pin torch==2.11.0 to matching base image and prevent CUDA bloat

chore: pin torch==2.11.0 to matching base image and prevent CUDA bloat #11

Workflow file for this run

name: Build and Push to GHCR (RunPod Serverless)
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost
sudo apt-get clean
docker system prune -af
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: ./runpod
push: true
tags: ghcr.io/effame/stockgen-upscaler:latest
cache-from: type=gha
cache-to: type=gha,mode=max