🐳 Fix: Change Dockerfile.build WORKDIR to /build to avoid collision
All checks were successful
CI/CD Pipeline / Build Docker Cache (push) Successful in 1m58s
CI/CD Pipeline / CI Pipeline (push) Successful in 5m2s
CI/CD Pipeline / Trigger Docker Push (push) Has been skipped

This commit is contained in:
2026-04-09 11:57:25 +02:00
parent 623f822fde
commit a9e2f08a28
2 changed files with 3 additions and 4 deletions

View File

@@ -65,10 +65,9 @@ jobs:
if: steps.cache-swagger-restore.outputs.cache-hit != 'true' if: steps.cache-swagger-restore.outputs.cache-hit != 'true'
run: > run: >
docker run --rm docker run --rm
-v ${GITHUB_WORKSPACE}:/host-workspace -v ${GITHUB_WORKSPACE}:/build
-w /workspace
gitea.arcodange.lab/arcodange/dance-lessons-coach-build-cache:${{ steps.calc_hash.outputs.deps_hash }} gitea.arcodange.lab/arcodange/dance-lessons-coach-build-cache:${{ steps.calc_hash.outputs.deps_hash }}
sh -c "cp -r /host-workspace/. /workspace && ls -la && pwd && find . -name go.mod -type f 2>/dev/null" go generate ./pkg/server
- name: Save Swagger Docs Cache - name: Save Swagger Docs Cache
if: steps.cache-swagger-restore.outputs.cache-hit != 'true' if: steps.cache-swagger-restore.outputs.cache-hit != 'true'

View File

@@ -37,7 +37,7 @@ COPY go.mod go.sum ./
RUN go mod download && go mod verify RUN go mod download && go mod verify
# Simple build environment - source code is mounted at runtime # Simple build environment - source code is mounted at runtime
WORKDIR /workspace WORKDIR /build
# Pre-download common Go tools (already installed in base) # Pre-download common Go tools (already installed in base)
# RUN go install github.com/swaggo/swag/cmd/swag@latest # RUN go install github.com/swaggo/swag/cmd/swag@latest