🐳 Fix: Change Dockerfile.build WORKDIR to /build to avoid collision
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user