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.
Consolidate github workflows (flyteorg#301)
* Consolidate github workflows Signed-off-by: Haytham Abuelfutuh <[email protected]> * try objects Signed-off-by: Haytham Abuelfutuh <[email protected]> * wip Signed-off-by: Haytham Abuelfutuh <[email protected]> * wip Signed-off-by: Haytham Abuelfutuh <[email protected]> * wip Signed-off-by: Haytham Abuelfutuh <[email protected]> * wip Signed-off-by: Haytham Abuelfutuh <[email protected]> * Update contribution guide Signed-off-by: Haytham Abuelfutuh <[email protected]>
- Loading branch information
Showing
17 changed files
with
143 additions
and
474 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,58 @@ | ||
name: Build & Push Docker Images | ||
|
||
on: | ||
pull_request: | ||
create: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
push-github: | ||
name: Push to GHCR | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: cookbook | ||
strategy: | ||
matrix: | ||
directory: | ||
- name: core | ||
path: . | ||
- name: pod | ||
path: integrations/kubernetes | ||
- name: k8s_spark | ||
path: integrations/kubernetes | ||
- name: kfpytorch | ||
path: integrations/kubernetes | ||
- name: sqlite_datacleaning | ||
path: case_studies/feature_engineering | ||
- name: sagemaker_training | ||
path: integrations/aws | ||
- name: sagemaker_pytorch | ||
path: integrations/aws | ||
- name: pima_diabetes | ||
path: case_studies/ml_training | ||
- name: papermilltasks | ||
path: integrations/flytekit_plugins | ||
- name: pandera | ||
path: integrations/flytekit_plugins | ||
- name: house_price_prediction | ||
path: case_studies/ml_training | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "0" | ||
- name: Push Spark Plugin 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: ${{ matrix.directory.name }}-latest,${{ matrix.directory.name }}-${{ github.sha }},${{ matrix.directory.name }}-${{ 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:${{ matrix.directory.name }}-${{ github.sha }}" | ||
context: ./cookbook/${{ matrix.directory.path }} | ||
dockerfile: ${{ matrix.directory.name }}/Dockerfile |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.