Skip to content

Commit

Permalink
web docs path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hatomist committed Oct 18, 2024
1 parent 0364aad commit c9228b1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
36 changes: 35 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,44 @@ build_docker:
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
script:
- |
cat <<EOF > nginx.conf
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '\$remote_addr - \$remote_user [\$time_local] "\$request" '
'\$status \$body_bytes_sent "\$http_referer" '
'"\$http_user_agent" "\$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location /python {
root /usr/share/nginx/html;
index index.html index.htm;
try_files \$uri \$uri/ /python/index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}
EOF
- |
cat <<EOF > Dockerfile
FROM nginx:alpine
COPY docs /usr/share/nginx/html/docs
COPY docs /usr/share/nginx/html/python
COPY nginx.conf /etc/nginx/nginx.conf
EOF
- docker build --pull -t $DOCS_IMAGE .
- docker push $DOCS_IMAGE
Expand Down
2 changes: 1 addition & 1 deletion openlch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.4.2"
__version__ = "0.4.3"

from .hal import HAL

0 comments on commit c9228b1

Please sign in to comment.