Update Jenkinsfile
All checks were successful
Updates/open-webui-ollama-docker-deploy/pipeline/head This commit looks good
All checks were successful
Updates/open-webui-ollama-docker-deploy/pipeline/head This commit looks good
This commit is contained in:
parent
bf59607685
commit
e2092ba64a
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -39,7 +39,6 @@ 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 """
|
||||
export PG_PASS=\$(openssl rand -base64 48 | tr -dc 'A-Za-z0-9' | head -c32)
|
||||
|
||||
COMPOSE_PROJECT_NAME=openwebui \
|
||||
CHROMAUI=${CHROMAUI} \
|
||||
@ -48,6 +47,7 @@ pipeline {
|
||||
OLLAMA=${OLLAMA} \
|
||||
OPENWEBUI=${OPENWEBUI} \
|
||||
|
||||
export PG_PASS=\$(openssl rand -base64 48 | tr -dc 'A-Za-z0-9' | head -c32)
|
||||
docker compose pull
|
||||
COMPOSE_PROJECT_NAME=openwebui \
|
||||
CHROMADB=${CHROMADB} \
|
||||
@ -57,7 +57,7 @@ pipeline {
|
||||
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
|
||||
echo "ALTER USER openwebui_user WITH PASSWORD '\$PG_PASS';" | docker exec -i openwebui_postgres_db psql -U openwebui_user -d openwebui_db
|
||||
|
||||
"""
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user