Skip to content
Snippets Groups Projects
Commit d8fb78b9 authored by Jan Grewe's avatar Jan Grewe
Browse files

add CI pipeline

update for 1.5.1
parent d8f6dccc
No related branches found
No related tags found
No related merge requests found
Pipeline #898 passed
---
### 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
FROM nvidia/cuda:11.8.0-base-ubuntu22.04 FROM nvidia/cuda:11.8.0-base-ubuntu22.04
ARG VERSION ARG VERSION
ENV VERSION=1.3.2 ENV VERSION=1.5.1
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update -y \ RUN apt-get -qq update -y \
...@@ -23,4 +23,4 @@ RUN sed -i -e 's/ start()/ #start()/g' /app/launch.py \ ...@@ -23,4 +23,4 @@ RUN sed -i -e 's/ start()/ #start()/g' /app/launch.py \
EXPOSE 7860 EXPOSE 7860
ENTRYPOINT ["python", "launch.py", "--listen", "--data-dir", "/app/data", "--disable-console-progressbars", "--enable-insecure-extension-access"] 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"]
...@@ -5,7 +5,7 @@ This builds a Docker image containing the Stable Diffusion WebUI by AUTOMATIC111 ...@@ -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) ## Build the image (and optionally push it to your registry)
Set the version and image name to use: 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 export IMAGE_NAME=registry.example.com/stable-diffusion-webui
``` ```
Build the image and also add the `latest` tag: Build the image and also add the `latest` tag:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment