Skip to content

Commit

Permalink
Try setting workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Nov 28, 2024
1 parent a09756c commit 3b3cf45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
if: matrix.os_family == 'Linux'
run: |
docker run \
--rm -v "$(pwd):/workspace" -w /workspace \
--rm -w /workspace -v "$(pwd):/workspace" --user="$(id --user):$(id --group)" \
$(docker build -q ./docker/native-image) \
sh -c "./gradlew :temporal-test-server:build"
# path ends in a wildcard because on windows the file ends in '.exe'
Expand Down
4 changes: 1 addition & 3 deletions docker/native-image/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ ENV JAVA_HOME=/opt/java/openjdk
COPY --from=eclipse-temurin:21 $JAVA_HOME $JAVA_HOME
ENV PATH="${JAVA_HOME}/bin:${PATH}"
RUN apt-get update
RUN apt-get install -y git build-essential zlib1g-dev
RUN git config --global --add safe.directory '/workspace'
RUN git config --global --add safe.directory '/workspace/sdk-java'
RUN apt-get install -y git build-essential zlib1g-dev

0 comments on commit 3b3cf45

Please sign in to comment.