diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..55c3c80e1db6430b3bb4936593417efeb5bcd77e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,21 @@ +--- +### SET IN CI VARIABLES +# variables: +# VERSION: "1.0.0" +# IMAGE_NAME: "registry.example.com/stable-diffusion-webui" + +stages: + - build + - push + +build_image: + stage: build + script: + - docker build --build-arg VERSION=${VERSION} -t ${IMAGE_NAME}:${VERSION} . + +push_image: + stage: push + script: + - docker push ${IMAGE_NAME}:${VERSION} + - docker tag ${IMAGE_NAME}:${VERSION} ${IMAGE_NAME}:latest + - docker push ${IMAGE_NAME}:latest diff --git a/Dockerfile b/Dockerfile index dfb767d8b7f3548f7b80d5288abc1db181198332..9502706dcf41405bfffeb76cb248de1bdee917f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM nvidia/cuda:11.8.0-base-ubuntu22.04 ARG VERSION -ENV VERSION=1.3.2 +ENV VERSION=1.5.1 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get -qq update -y \ @@ -23,4 +23,4 @@ RUN sed -i -e 's/ start()/ #start()/g' /app/launch.py \ EXPOSE 7860 ENTRYPOINT ["python", "launch.py", "--listen", "--data-dir", "/app/data", "--disable-console-progressbars", "--enable-insecure-extension-access"] -CMD ["--api", "--opt-sdp-no-mem-attention", "--opt-channelslast"] +CMD ["--api", "--opt-sdp-no-mem-attention", "--opt-channelslast", "--no-half-vae"] diff --git a/README.md b/README.md index e56bf7784996b42872ecee7e6041d664c30f2853..30816563c587fcc34fb513e9d5f945b78200e7a6 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This builds a Docker image containing the Stable Diffusion WebUI by AUTOMATIC111 ## Build the image (and optionally push it to your registry) Set the version and image name to use: ``` -export VERSION="1.3.2" +export VERSION="1.5.1" export IMAGE_NAME=registry.example.com/stable-diffusion-webui ``` Build the image and also add the `latest` tag: