mirror of
https://github.com/ajurna/cbwebreader.git
synced 2026-11-02 10:36:55 +00:00
**Refactor Docker and Compose for enhanced compatibility and efficiency**
- Restructured `Dockerfile` to include a dedicated frontend build stage and improved runtime configurations. - Added new health checks and adjusted environment variables for better container management. - Updated cron job configurations to leverage `/opt/venv` and align with new paths. - Refined `docker-compose` files for multi-service setups, including better volume and environment variable handling. - Migrated `cbwebreader-cron` service setup and improved restart policies across the board. - Enhanced `.gitea` CI workflow to use updated tools (`uv`), streamline buildx processes, and ensure proper version extraction from metadata.
This commit is contained in:
1 parent
9b9db755e6
commit
147a3a54ef
9 files changed
+122
-92
No files matched your search
@@ -12,25 +12,21 @@ jobs:
|
||||
run: curl -fsSL https://get.docker.com | sh
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
- name: Set up Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: install pip
|
||||
run: apt update && apt install -y python3-pip
|
||||
- uses: abatilo/actions-poetry@v2
|
||||
with:
|
||||
poetry-version: "1.6.1"
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v3
|
||||
# Extract version from Poetry
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install uv
|
||||
run: pip install uv
|
||||
# Extract version from the project metadata
|
||||
- name: Get version
|
||||
run: echo "POETRY_VERSION=$(poetry version --short)" >> $GITHUB_ENV
|
||||
run: echo "PROJECT_VERSION=$(uv version --short)" >> $GITHUB_ENV
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
docker build -t ajurna/cbwebreader:latest -t ajurna/cbwebreader:${{ env.POETRY_VERSION }} .
|
||||
docker push ajurna/cbwebreader:${{ env.POETRY_VERSION }}
|
||||
docker build -t ajurna/cbwebreader:latest -t ajurna/cbwebreader:${{ env.PROJECT_VERSION }} .
|
||||
docker push ajurna/cbwebreader:${{ env.PROJECT_VERSION }}
|
||||
docker push ajurna/cbwebreader:latest
|
||||
Reference in new issue
Block a user