From d8fb78b919852cb6d82c04423c11bae56be15bae Mon Sep 17 00:00:00 2001
From: Jan Grewe <jan@faked.org>
Date: Sat, 29 Jul 2023 20:22:57 +0200
Subject: [PATCH] add CI pipeline update for 1.5.1

---
 .gitlab-ci.yml | 21 +++++++++++++++++++++
 Dockerfile     |  4 ++--
 README.md      |  2 +-
 3 files changed, 24 insertions(+), 3 deletions(-)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..55c3c80
--- /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 dfb767d..9502706 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 e56bf77..3081656 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:
-- 
GitLab