Update DevContainer: Python 3.14, git installation, fix build context
Build and Push MkDocs Site / build-and-push (push) Successful in 11m10s

This commit is contained in:
rewa81 committed 2025-11-23 14:28:15 +01:00
1 parent 4032e334f4
commit 29963ee4b4
8 files changed
+45 -67

No files matched your search

+15 -3
View File
@@ -1,4 +1,16 @@
FROM squidfunk/mkdocs-material
FROM python:3.14-alpine
# Optional: Install additional tools if needed
# RUN apk add --no-cache <package-name>
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
# Set working directory
WORKDIR /workspaces/mkdocs-wiki
# Copy project files
COPY requirements.txt pyproject.toml* uv.lock* ./
# Install git
RUN apk add --no-cache git
# Install dependencies with uv
RUN uv pip install --system -r requirements.txt
+2 -2
View File
@@ -2,13 +2,13 @@
"name": "MkDocs DevContainer",
"build": {
"dockerfile": "Dockerfile",
"context": "."
"context": ".."
},
"runArgs": ["--init"],
"settings": {},
"extensions": [],
"forwardPorts": [8000],
"postCreateCommand": "mkdocs serve -a 0.0.0.0:8000",
"postCreateCommand": "uv pip install --system -r requirements.txt && mkdocs serve -a 0.0.0.0:8000",
"mounts": [
"source=${localWorkspaceFolder},target=/docs,type=bind"
]
+28 -22
View File
@@ -16,10 +16,15 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13' # Specifying the Python version we want to use
# cache: 'pip' # caching pip dependencies
python-version: '3.14' # Specifying the Python version we want to use
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
run: pip install -r requirements.txt
run: uv pip install --system -r requirements.txt
- name: build Website
run: mkdocs build
@@ -39,25 +44,26 @@ jobs:
dockerfile: Dockerfile
tags: gitea.rwcloud.ch/homelab/wiki:latest
deploy:
needs: build-and-push
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using ssh key
uses: appleboy/ssh-action@v1.2.0
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
cd ~/ansible
git pull
source ./.venv/bin/activate
pip install -r requirements.txt
ansible-playbook -i inventory/hosts.yml --vault-password-file ./.vault_pass playbooks/proxmox/deploy_docker_services.yml --tags oauth2-wiki,wiki-uninstall
ansible-playbook -i inventory/hosts.yml --vault-password-file ./.vault_pass playbooks/proxmox/deploy_docker_services.yml --tags oauth2-wiki,wiki-install
deactivate
# TODO: Deploy muss neu geschrieben werden
# deploy:
# needs: build-and-push
# runs-on: ubuntu-latest
# steps:
# - name: executing remote ssh commands using ssh key
# uses: appleboy/ssh-action@v1.2.0
# with:
# host: ${{ secrets.SSH_HOST }}
# username: ${{ secrets.SSH_USERNAME }}
# key: ${{ secrets.SSH_KEY }}
# port: ${{ secrets.SSH_PORT }}
# script: |
# cd ~/ansible
# git pull
# source ./.venv/bin/activate
# pip install -r requirements.txt
# ansible-playbook -i inventory/hosts.yml --vault-password-file ./.vault_pass playbooks/proxmox/deploy_docker_services.yml --tags oauth2-wiki,wiki-uninstall
# ansible-playbook -i inventory/hosts.yml --vault-password-file ./.vault_pass playbooks/proxmox/deploy_docker_services.yml --tags oauth2-wiki,wiki-install
# deactivate
-8
View File
@@ -1,8 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
-6
View File
@@ -1,6 +0,0 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
-12
View File
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="PyDocumentationSettings">
<option name="format" value="PLAIN" />
<option name="myDocStringFormat" value="Plain" />
</component>
</module>
-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/mkdocs-wiki.iml" filepath="$PROJECT_DIR$/.idea/mkdocs-wiki.iml" />
</modules>
</component>
</project>
Generated
-6
View File
@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>