Skip to content

A self-hosted media server and file management system

chore: try again to include .git folder during ci action

aminnausin7615d01c63a0
diff --git a/.github/workflows/ci-docker-release.yml b/.github/workflows/ci-docker-release.yml
index f379b513..28ed7096 100644
--- a/.github/workflows/ci-docker-release.yml
+++ b/.github/workflows/ci-docker-release.yml
@@ -144,9 +144,11 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
-
- - name: Verify Git Repo Exists
- run: git rev-parse --short HEAD
+ - name: Ensure full git metadata
+ run: |
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
+ git fetch --tags --force
+ git rev-parse HEAD
- name: Update .env.docker
run: |
diff --git a/Dockerfile b/Dockerfile
index 3921f9fc..f359c720 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -122,7 +122,7 @@ COPY --chown=www-data:www-data .env.example .env
# Copy .git folder for manifest generation at runtime
COPY --chown=www-data:www-data .git .git
-# Generate manifest, set permissions for Laravel runtime and generate chrome config directories
+# Set permissions for Laravel runtime and generate chrome config directories
RUN composer dump-autoload && \
mkdir -p /var/www/html/storage/app/chrome/.config && \
chown -R www-data:www-data /var/www/html/storage && \