Skip to content

Commit 5b32ecc

Browse files
committed
fix: update Docker configuration and GitHub Actions
- Add DATABASE_PATH and LOGS_DIR environment variables to Docker image - Add xz-utils to runtime dependencies for s6-overlay extraction - Update GitHub Actions to use actions/upload-artifact@v4 - Update CodeQL upload-sarif to v3
1 parent f90c383 commit 5b32ecc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/docker-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393

9494
- name: Upload SBOM
9595
if: github.event_name != 'pull_request'
96-
uses: actions/upload-artifact@v3
96+
uses: actions/upload-artifact@v4
9797
with:
9898
name: sbom
9999
path: sbom.spdx.json
@@ -115,7 +115,7 @@ jobs:
115115
output: 'trivy-results.sarif'
116116

117117
- name: Upload Trivy results to GitHub Security tab
118-
uses: github/codeql-action/upload-sarif@v2
118+
uses: github/codeql-action/upload-sarif@v3
119119
if: always()
120120
with:
121121
sarif_file: 'trivy-results.sarif'

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ LABEL org.opencontainers.image.title="Reddit ModLog Wiki Publisher" \
3131
RUN apt-get update && apt-get install -y --no-install-recommends \
3232
ca-certificates \
3333
curl \
34+
xz-utils \
3435
&& rm -rf /var/lib/apt/lists/*
3536

3637
# Install s6-overlay for proper init and user management
@@ -54,7 +55,9 @@ ENV PATH="/opt/venv/bin:$PATH" \
5455
PYTHONDONTWRITEBYTECODE=1 \
5556
PUID=1000 \
5657
PGID=1000 \
57-
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
58+
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
59+
DATABASE_PATH=/app/data/modlog.db \
60+
LOGS_DIR=/app/logs
5861

5962
# Create application directories
6063
RUN mkdir -p /app /app/data /app/logs /etc/s6-overlay/s6-rc.d/modlog-bot /etc/s6-overlay/s6-rc.d/init-modlogbot

0 commit comments

Comments
 (0)