mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-01-19 06:50:24 +01:00
Update docker.yml
try building images
This commit is contained in:
parent
3e25d0a77c
commit
f4d803ac8f
60
.github/workflows/docker.yml
vendored
60
.github/workflows/docker.yml
vendored
|
|
@ -12,14 +12,58 @@ jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
profile:
|
include:
|
||||||
- auto
|
- image: simonmcnair/AUTOMATIC1111
|
||||||
- comfy
|
dockerfile: services/AUTOMATIC1111/Dockerfile
|
||||||
- download
|
context: services/AUTOMATIC1111/
|
||||||
- fooocus
|
|
||||||
- forge
|
- image: simonmcnair/comfy
|
||||||
|
dockerfile: services/comfy/Dockerfile
|
||||||
|
context: services/comfy/
|
||||||
|
|
||||||
|
- image: simonmcnair/download
|
||||||
|
dockerfile: services/download/Dockerfile
|
||||||
|
context: services/download/
|
||||||
|
|
||||||
|
- image: simonmcnair/fooocus
|
||||||
|
dockerfile: services/fooocus/Dockerfile
|
||||||
|
context: services/fooocus/
|
||||||
|
|
||||||
|
- image: simonmcnair/forge
|
||||||
|
dockerfile: services/forge/Dockerfile
|
||||||
|
context: services/forge/
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: ${{ matrix.profile }}
|
name: ${{ matrix.profile }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- run: docker compose --profile ${{ matrix.profile }} build --progress plain
|
# - run: docker compose --profile ${{ matrix.profile }} build --progress plain
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
- name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||||
|
with:
|
||||||
|
images: ${{ matrix.image }}
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
||||||
|
with:
|
||||||
|
context: ${{ matrix.context }}
|
||||||
|
file: ${{ matrix.dockerfile }}
|
||||||
|
push: true
|
||||||
|
#This is needed because it is called main instead of master to get the latest tag in docker
|
||||||
|
tags: |
|
||||||
|
# set latest tag for default branch
|
||||||
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
|
#tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue