forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI for House Price Prediction Example (flyteorg#279)
* Add CI for House Price Prediction Example Signed-off-by: Haytham Abuelfutuh <[email protected]> * Fix paths Signed-off-by: Haytham Abuelfutuh <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
3 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,33 @@ | ||
name: Build and Push House Price Prediction example Docker Images | ||
|
||
on: | ||
pull_request: | ||
create: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
push-github: | ||
name: Push House Price Prediction example to GHCR | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: cookbook | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "0" | ||
- name: Push Docker Image to Github Registry | ||
uses: whoan/docker-build-with-cache-action@v5 | ||
with: | ||
# https://docs.github.com/en/packages/learn-github-packages/publishing-a-package | ||
username: "${{ secrets.FLYTE_BOT_USERNAME }}" | ||
password: "${{ secrets.FLYTE_BOT_PAT }}" | ||
image_name: ${{ github.repository_owner }}/flytecookbook | ||
image_tag: house_price_prediction-latest,house_price_prediction-${{ github.sha }},house_price_prediction-${{ github.event.ref }} | ||
push_git_tag: ${{ github.event_name != 'pull_request' }} | ||
push_image_and_stages: ${{ github.event_name != 'pull_request' }} | ||
registry: ghcr.io | ||
build_extra_args: "--compress=true --build-arg=tag=ghcr.io/${{ github.repository_owner }}/flytecookbook:house_price_prediction-${{ github.sha }}" | ||
context: ./cookbook/case_studies/ml_training/ | ||
dockerfile: house_price_prediction/Dockerfile |
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