Skip to content

Diffusers, txt2img and img2img, make sure guidance scale defaults to … #90

Diffusers, txt2img and img2img, make sure guidance scale defaults to …

Diffusers, txt2img and img2img, make sure guidance scale defaults to … #90

name: diffusers-docker-cd
on:
push:
branches:
- main
paths:
- ".github/workflows/python-api-diffusers-cd.yaml"
- "docker_images/diffusers/**"
concurrency:
group: diffusers-cd-${{ github.head_ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/[email protected]
- name: Inject slug/short variables
uses: rlespinasse/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: downcase REPO
run: |
echo "CONTAINER_REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Docker meta
id: meta
uses: docker/[email protected]
with:
images: ghcr.io/${{ env.CONTAINER_REPO }}
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
id: build-and-push
uses: docker/[email protected]
with:
context: docker_images/diffusers
push: true
platforms: 'linux/amd64'
tags: ghcr.io/${{ env.CONTAINER_REPO }}/diffusers:${{ env.GITHUB_SHA_SHORT || steps.meta-pr.outputs.tags }}
labels: ${{ steps.meta.outputs.labels || steps.meta-pr.outputs.labels }}
# TODO: cache-from/cache-to