diff --git a/.github/workflows/build-push-docker.yml b/.github/workflows/build-push-docker.yml index 3b4f898..005349c 100644 --- a/.github/workflows/build-push-docker.yml +++ b/.github/workflows/build-push-docker.yml @@ -106,9 +106,18 @@ jobs: # push: true # tags: ${{ steps.docker_tags_base.outputs.tags }} + - name: Cache + uses: actions/cache@v3.2.0 + with: + # A list of files, directories, and wildcard patterns to cache and restore + path: .m2/repository + # An explicit key for restoring and saving the cache + key: octopus-springboot-2.3.6 + + - name: Maven package project run: | - mvn -B -DskipTests=true package --file pom.xml + mvn -B -DskipTests=true install --file pom.xml ls echo "--------------------------------------" pwd @@ -124,6 +133,7 @@ jobs: cat /proc/cpuinfo echo "--------------------------------------" + - name: Setup Maven settings.xml uses: whelk-io/maven-settings-xml-action@v11 with: