Skip to content

Commit bc8b3a3

Browse files
authored
ci: Fix build and ensure that building the java feature server is part of PR CI (feast-dev#3052)
ci: Fix build and ensure that building the java feature server is part of the java_pr workflow Signed-off-by: Danny Chiao <danny@tecton.ai>
1 parent e78d1d7 commit bc8b3a3

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/java_pr.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,26 @@ jobs:
5353
name: java-coverage-report
5454
path: ${{ github.workspace }}/docs/coverage/java/target/site/jacoco-aggregate/
5555

56+
build-docker-image-java:
57+
runs-on: ubuntu-latest
58+
strategy:
59+
matrix:
60+
component: [ feature-server-java ]
61+
env:
62+
REGISTRY: gcr.io/kf-feast
63+
steps:
64+
- uses: actions/checkout@v2
65+
with:
66+
submodules: 'true'
67+
- run: gcloud auth configure-docker --quiet
68+
- name: Get m2 cache
69+
run: |
70+
infra/scripts/download-maven-cache.sh \
71+
--archive-uri ${MAVEN_CACHE} \
72+
--output-dir .
73+
- name: Build image
74+
run: make build-${{ matrix.component }}-docker REGISTRY=${REGISTRY} VERSION=${GITHUB_SHA}
75+
5676
integration-test:
5777
# all jobs MUST have this if check for 'ok-to-test' or 'approved' for security purposes.
5878
if:

java/infra/docker/feature-server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY java/pom.xml .
1010
COPY java/datatypes/pom.xml datatypes/pom.xml
1111
COPY java/serving/pom.xml serving/pom.xml
1212
COPY java/serving-client/pom.xml serving-client/pom.xml
13-
COPY java/docs/coverage/pom.xml docs/coverage/pom.xml
13+
COPY java/coverage/pom.xml coverage/pom.xml
1414

1515
# Setting Maven repository .m2 directory relative to /build folder gives the
1616
# user to optionally use cached repository when building the image by copying

0 commit comments

Comments
 (0)