Skip to content

Commit ff3a42a

Browse files
committed
ci: Fix docker image java workflow to read from the right maven cache (feast-dev#3053)
Signed-off-by: Danny Chiao <[email protected]>
1 parent 55ec538 commit ff3a42a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/java_pr.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,18 @@ jobs:
5959
matrix:
6060
component: [ feature-server-java ]
6161
env:
62+
MAVEN_CACHE: gs://feast-templocation-kf-feast/.m2.2020-08-19.tar
6263
REGISTRY: gcr.io/kf-feast
6364
steps:
6465
- uses: actions/checkout@v2
6566
with:
6667
submodules: 'true'
68+
- uses: google-github-actions/setup-gcloud@v0
69+
with:
70+
version: '290.0.1'
71+
export_default_credentials: true
72+
project_id: ${{ secrets.GCP_PROJECT_ID }}
73+
service_account_key: ${{ secrets.GCP_SA_KEY }}
6774
- run: gcloud auth configure-docker --quiet
6875
- name: Get m2 cache
6976
run: |
@@ -73,7 +80,7 @@ jobs:
7380
- name: Build image
7481
run: make build-${{ matrix.component }}-docker REGISTRY=${REGISTRY} VERSION=${GITHUB_SHA}
7582

76-
integration-test:
83+
integration-test-java-pr:
7784
# all jobs MUST have this if check for 'ok-to-test' or 'approved' for security purposes.
7885
if:
7986
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'ok-to-test')) ||

0 commit comments

Comments
 (0)