Skip to content
Snippets Groups Projects
Commit 2b320462 authored by Janne Valkealahti's avatar Janne Valkealahti
Browse files

Add m2 build cache

parent 819187df
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,14 @@ jobs:
env:
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
# cache maven .m2
- uses: actions/cache@v1
with:
path: .m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-
# target deploy repos
- name: Configure JFrog Cli
run: |
......@@ -48,7 +56,7 @@ jobs:
# build and publish to configured target
- name: Build and Publish
run: |
jfrog rt mvn -U -B clean install
jfrog rt mvn "-Dmaven.repo.local=.m2" -U -B clean install
jfrog rt build-publish
echo BUILD_ZOO_HANDLER_spring_cloud_deployer_local_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) >> $GITHUB_ENV
echo BUILD_ZOO_HANDLER_spring_cloud_deployer_local_buildname=spring-cloud-deployer-local-main >> $GITHUB_ENV
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment