@@ -132,32 +132,43 @@ jobs:
132132 - build-push-docker-images
133133 - publish-ingestion-jar
134134 runs-on : ubuntu-latest
135+ env :
136+ INGESTION_JAR_PATH : /shared/feast-ingestion-spark-develop.jar
135137 steps :
136138 - uses : actions/checkout@v2
139+ - name : Download ingestion jar
140+ uses : actions/download-artifact@v2
141+ with :
142+ name : ingestion-jar
143+ path : ./infra/docker-compose/
137144 - name : Test docker compose
138145 run : ./infra/scripts/test-docker-compose.sh ${GITHUB_SHA}
139146
140147 publish-ingestion-jar :
141- runs-on : [self-hosted]
148+ runs-on : ubuntu-latest
142149 steps :
143150 - uses : actions/checkout@v2
144- - uses : GoogleCloudPlatform/github-actions/setup-gcloud@master
145- with :
146- version : ' 290.0.1'
147- export_default_credentials : true
148151 - uses : actions/setup-java@v1
149152 with :
150153 java-version : ' 11'
151- - uses : stCarolas/setup-maven@v3
154+ - name : Cache local Maven repository
155+ uses : actions/cache@v2
152156 with :
153- maven-version : 3.6.3
157+ path : ~/.m2/repository
158+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
159+ restore-keys : |
160+ ${{ runner.os }}-maven-
154161 - name : build-jar
155162 env :
156163 # Try to add retries to prevent connection resets
157164 # https://github.community/t/getting-maven-could-not-transfer-artifact-with-500-error-when-using-github-actions/17570
158165 # https://github.com/actions/virtual-environments/issues/1499#issuecomment-718396233
159166 MAVEN_OPTS : -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
160167 MAVEN_EXTRA_OPTS : -X
161- run : make build-java-no-tests REVISION=${GITHUB_SHA}
162- - name : copy to gs
163- run : gsutil cp ./spark/ingestion/target/feast-ingestion-spark-${GITHUB_SHA}.jar gs://feast-jobs/spark/ingestion/
168+ run : make build-java-no-tests REVISION=develop
169+ - name : Upload ingestion jar
170+ uses : actions/upload-artifact@v2
171+ with :
172+ name : ingestion-jar
173+ path : spark/ingestion/target/feast-ingestion-spark-develop.jar
174+ retention-days : 1
0 commit comments