Update Jenkinsfile
Some checks reported errors
Updates/open-webui-ollama-docker-deploy/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
Updates/open-webui-ollama-docker-deploy/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
bf57b14ac4
commit
ead998e840
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@ -39,8 +39,26 @@ pipeline {
|
||||
script {
|
||||
withCredentials([usernamePassword(credentialsId: 'gitea-oauth-open-webui-client-id-secret', passwordVariable: 'CLIENT_SECRET', usernameVariable: 'CLIENT_ID'), string(credentialsId: 'OpenAI-API-Token', variable: 'OPEN_AI_TOKEN'), usernamePassword(credentialsId: 'ldap-bind-auth-user', passwordVariable: 'AD_BIND_PASSWORD', usernameVariable: 'AD_BIND_USER')]) {
|
||||
sh """
|
||||
COMPOSE_PROJECT_NAME=openwebui CHROMAUI=${CHROMAUI} CHROMADB=${CHROMADB} TIKA=${TIKA} OLLAMA=${OLLAMA} OPENWEBUI=${OPENWEBUI} docker compose pull
|
||||
COMPOSE_PROJECT_NAME=openwebui CHROMADB=${CHROMADB} CHROMAUI=$CHROMAUI} TIKA=${TIKA} OLLAMA=${OLLAMA} OPENWEBUI=${OPENWEBUI} docker compose up -d --force-recreate
|
||||
export PG_PASS=\$(openssl rand -base64 48 | tr -dc 'A-Za-z0-9' | head -c32)
|
||||
|
||||
COMPOSE_PROJECT_NAME=openwebui \
|
||||
CHROMAUI=${CHROMAUI} \
|
||||
CHROMADB=${CHROMADB} \
|
||||
TIKA=${TIKA} \
|
||||
OLLAMA=${OLLAMA} \
|
||||
OPENWEBUI=${OPENWEBUI} \
|
||||
|
||||
docker compose pull
|
||||
COMPOSE_PROJECT_NAME=openwebui \
|
||||
CHROMADB=${CHROMADB} \
|
||||
CHROMAUI=$CHROMAUI} \
|
||||
TIKA=${TIKA} \
|
||||
OLLAMA=${OLLAMA} \
|
||||
OPENWEBUI=${OPENWEBUI} \
|
||||
docker compose up -d --force-recreate
|
||||
|
||||
echo "ALTER USER joplin WITH PASSWORD '\$PG_PASS';" | docker exec -i webuipostgres psql -U joplin -d joplindb
|
||||
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user