Skip to content

Commit

Permalink
disabled cache-to for pull requests (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-mlb committed Jun 7, 2024
1 parent ff7d52f commit a3cb7d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
java_compiler=${{ matrix.java-compiler }}
verify_build=${{ matrix.verify-build }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: ${{ github.event_name == 'push' && 'type=gha,mode=max' || '' }}

centos7-build:
name: Centos7 legacy build on Java 11 with compiler target 11
Expand All @@ -73,7 +73,7 @@ jobs:
target_os=centos7
verify_build=false
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: ${{ github.event_name == 'push' && 'type=gha,mode=max' || '' }}

macos-build:
name: MacOS non-standard build on Java 11 with compiler target 11
Expand Down
4 changes: 3 additions & 1 deletion contrib/docker/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ RUN git init --quiet \
&& git commit --quiet -am.

ARG java_compiler=11
ARG maven_phases='clean verify'
ARG maven_profiles='-Pdist'
RUN --mount=type=cache,uid=${uid},gid=${gid},target=/home/${user}/.m2 \
mvn -V -B -e -ntp "-Dstyle.color=always" -Dmaven.compiler.release=${java_compiler} clean verify -Pdist
mvn -V -B -e -ntp "-Dstyle.color=always" -Dmaven.compiler.release=${java_compiler} ${maven_phases} ${maven_profiles}

ARG verify_build=false
RUN if ${verify_build} ; then ./contrib/ci/detect-changes.sh ; fi
Expand Down

0 comments on commit a3cb7d7

Please sign in to comment.