Skip to content

Commit b1f4783

Browse files
committed
use fix context
try to change maven local repo path
1 parent 069e818 commit b1f4783

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/generator.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
- name: Cache local Maven repository
1919
uses: actions/cache@v2
2020
with:
21-
path: ~/.m2/repository
21+
path: ./.m2/repository
2222
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
2323
restore-keys: |
2424
${{ runner.os }}-maven-
2525
- name: Build JAR
2626
env:
27-
MAVEN_OPTS: -Dmaven.repo.local=$HOME/.m2/repository
27+
MAVEN_OPTS: -Dmaven.repo.local=./.m2/repository
2828
run: mvn clean package
2929
- name: Move archive
3030
run: mv target/*.tar json-data-generator.tar
@@ -67,6 +67,7 @@ jobs:
6767
- name: Build container image
6868
uses: docker/build-push-action@v2
6969
with:
70+
context: .
7071
push: true
7172
tags: ${{ steps.meta.outputs.tags }}
7273
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)