forked from feathr-ai/feathr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish Fat Jar to Blob Storage Steps Decouple and Fix (feathr-ai#990)
Signed-off-by: Yuqing Wei <[email protected]>
- Loading branch information
1 parent
5fd6314
commit 7dc7a52
Showing
2 changed files
with
40 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Publish Fat JAR package to the Blob Storage Folder | ||
on: | ||
push: | ||
# This pipeline will get triggered everytime there is a new tag created. | ||
# It is required | ||
tags: ["*"] | ||
|
||
jobs: | ||
publish-fat-jar: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
|
||
# Setting up JDK 8, this is required to build Feathr | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: "8" | ||
distribution: "temurin" | ||
|
||
# Publish Released Fat Jar to Blob Storage | ||
- name: Gradle build | ||
run: | | ||
./gradlew build | ||
# remote folder for CI upload | ||
echo "CI_SPARK_REMOTE_JAR_FOLDER=feathr_jar_release" >> $GITHUB_ENV | ||
# get local jar name without path | ||
echo "FEATHR_LOCAL_JAR_FULL_NAME_PATH=$(ls build/libs/*.jar)" >> $GITHUB_ENV | ||
- name: Azure Blob Storage Upload (Overwrite) | ||
uses: fixpoint/azblob-upload-artifact@v4 | ||
with: | ||
connection-string: ${{secrets.SPARK_JAR_BLOB_CONNECTION_STRING}} | ||
name: ${{ env.CI_SPARK_REMOTE_JAR_FOLDER}} | ||
path: ${{ env.FEATHR_LOCAL_JAR_FULL_NAME_PATH}} | ||
container: ${{secrets.SPARK_JAR_BLOB_CONTAINER}} | ||
cleanup: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters