Skip to content

Commit

Permalink
Separate out jobs to run in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
EngHabu committed Feb 9, 2021
1 parent a64e649 commit 55a5df1
Show file tree
Hide file tree
Showing 6 changed files with 160 additions and 65 deletions.
65 changes: 0 additions & 65 deletions .github/workflows/build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,68 +30,3 @@ jobs:
build_extra_args: "--compress=true"
context: ./cookbook
dockerfile: Dockerfile
- name: Push Pod 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-pod
image_tag: latest,${{ github.sha }},${{ github.event.ref }}
push_git_tag: true
registry: ghcr.io
build_extra_args: "--compress=true"
context: ./cookbook/recipes/plugins/pod
dockerfile: Dockerfile
- 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-spark
image_tag: latest,${{ github.sha }},${{ github.event.ref }}
push_git_tag: true
registry: ghcr.io
build_extra_args: "--compress=true"
context: ./cookbook/recipes/plugins/k8s_spark
dockerfile: Dockerfile
- name: Push Kubeflow Pytorch 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-kfpytorch
image_tag: latest,${{ github.sha }},${{ github.event.ref }}
push_git_tag: true
registry: ghcr.io
build_extra_args: "--compress=true"
context: ./cookbook/recipes/plugins/kfpytorch
dockerfile: Dockerfile
- name: Push SageMaker Pytorch 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-sagemaker-pytorch
image_tag: latest,${{ github.sha }},${{ github.event.ref }}
push_git_tag: true
registry: ghcr.io
build_extra_args: "--compress=true"
context: ./cookbook/recipes/plugins/sagemaker_pytorch
dockerfile: Dockerfile
- name: Push SageMaker Training 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-sagemaker-training
image_tag: latest,${{ github.sha }},${{ github.event.ref }}
push_git_tag: true
registry: ghcr.io
build_extra_args: "--compress=true"
context: ./cookbook/recipes/plugins/sagemaker_training
dockerfile: Dockerfile
32 changes: 32 additions & 0 deletions .github/workflows/ghcr_kfpytorch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build & Push Kubeflow Pytorch Plugin Docker Image

on:
pull_request:
create:
tags:
- v*

jobs:
push-github:
name: Push to GHCR
runs-on: ubuntu-latest
defaults:
run:
working-directory: cookbook
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Push Kubeflow Pytorch 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-kfpytorch
image_tag: latest,${{ github.sha }},${{ github.event.ref }}
push_git_tag: true
registry: ghcr.io
build_extra_args: "--compress=true"
context: ./cookbook/recipes/plugins/kfpytorch
dockerfile: Dockerfile
32 changes: 32 additions & 0 deletions .github/workflows/ghcr_pod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build & Push Pod Plugin Docker Image

on:
pull_request:
create:
tags:
- v*

jobs:
push-github:
name: Push to GHCR
runs-on: ubuntu-latest
defaults:
run:
working-directory: cookbook
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Push Pod 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-pod
image_tag: latest,${{ github.sha }},${{ github.event.ref }}
push_git_tag: true
registry: ghcr.io
build_extra_args: "--compress=true"
context: ./cookbook/recipes/plugins/pod
dockerfile: Dockerfile
32 changes: 32 additions & 0 deletions .github/workflows/ghcr_sagemaker_pytorch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build & Push SageMaker Pytorch Plugin Docker Image

on:
pull_request:
create:
tags:
- v*

jobs:
push-github:
name: Push to GHCR
runs-on: ubuntu-latest
defaults:
run:
working-directory: cookbook
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Push SageMaker Pytorch 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-sagemaker-pytorch
image_tag: latest,${{ github.sha }},${{ github.event.ref }}
push_git_tag: true
registry: ghcr.io
build_extra_args: "--compress=true"
context: ./cookbook/recipes/plugins/sagemaker_pytorch
dockerfile: Dockerfile
32 changes: 32 additions & 0 deletions .github/workflows/ghcr_sagemaker_training.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build & Push SageMaker Training Plugin Docker Image

on:
pull_request:
create:
tags:
- v*

jobs:
push-github:
name: Push to GHCR
runs-on: ubuntu-latest
defaults:
run:
working-directory: cookbook
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Push SageMaker Training 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-sagemaker-training
image_tag: latest,${{ github.sha }},${{ github.event.ref }}
push_git_tag: true
registry: ghcr.io
build_extra_args: "--compress=true"
context: ./cookbook/recipes/plugins/sagemaker_training
dockerfile: Dockerfile
32 changes: 32 additions & 0 deletions .github/workflows/ghcr_spark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build & Push Spark Plugin Docker Image

on:
pull_request:
create:
tags:
- v*

jobs:
push-github:
name: Push to GHCR
runs-on: ubuntu-latest
defaults:
run:
working-directory: cookbook
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-spark
image_tag: latest,${{ github.sha }},${{ github.event.ref }}
push_git_tag: true
registry: ghcr.io
build_extra_args: "--compress=true"
context: ./cookbook/recipes/plugins/k8s_spark
dockerfile: Dockerfile

0 comments on commit 55a5df1

Please sign in to comment.