forked from kubeflow/pipelines
-
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.
Signed-off-by: Humair Khan <HumairAK@users.noreply.github.com>
- Loading branch information
Showing
1 changed file
with
86 additions
and
0 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,86 @@ | ||
name: Build images from sources. | ||
run-name: Build images from sources. | ||
on: | ||
workflow_call: | ||
inputs: | ||
src_branch: | ||
type: string | ||
default: 'ubi_images' | ||
description: 'Source branch to build DSP from' | ||
required: true | ||
target_tag: | ||
type: string | ||
default: 'ubi-test-1' | ||
description: 'Target Image Tag' | ||
required: true | ||
quay_org: | ||
type: string | ||
default: 'hukhan' | ||
description: 'Quay Organization' | ||
required: true | ||
overwrite_imgs: | ||
type: string | ||
default: 'true' | ||
description: 'Overwrite images in quay if they already exist for this release.' | ||
required: true | ||
fail_fast: | ||
type: string | ||
default: 'true' | ||
description: 'Stop running entire Workflow if a single build fails' | ||
required: true | ||
|
||
workflow_dispatch: | ||
inputs: | ||
src_branch: | ||
type: string | ||
default: 'v1.0.x' | ||
description: 'Source branch to build DSP from' | ||
required: true | ||
target_tag: | ||
type: string | ||
default: 'vx.y.z' | ||
description: 'Target Image Tag' | ||
required: true | ||
quay_org: | ||
type: string | ||
default: 'opendatahub' | ||
description: 'Quay Organization' | ||
required: true | ||
overwrite_imgs: | ||
type: string | ||
default: 'true' | ||
description: 'Overwrite images in quay if they already exist for this release.' | ||
required: true | ||
fail_fast: | ||
type: string | ||
default: 'true' | ||
description: 'Stop running entire Workflow if a single build fails' | ||
required: true | ||
env: | ||
SOURCE_BRANCH: ${{ inputs.src_branch }} | ||
QUAY_ORG: ${{ inputs.quay_org }} | ||
QUAY_ID: ${{ secrets.QUAY_ROBOT_USERNAME }} | ||
QUAY_TOKEN: ${{ secrets.QUAY_ROBOT_TOKEN }} | ||
TARGET_IMAGE_TAG: ${{ inputs.target_tag }} | ||
OVERWRITE_IMAGES: ${{ inputs.overwrite_imgs }} | ||
jobs: | ||
build-images-with-tag: | ||
continue-on-error: false | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
strategy: | ||
fail-fast: ${{ inputs.fail_fast == 'true' }} | ||
matrix: | ||
include: | ||
- image: ds-pipelines-api-server | ||
dockerfile: backend/Dockerfile | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/build | ||
name: Build Image | ||
with: | ||
IMAGE_REPO: ${{ matrix.image }} | ||
DOCKERFILE: ${{ matrix.dockerfile }} | ||
GH_REPO: ${{ github.repository }} | ||
OVERWRITE: ${{ env.OVERWRITE_IMAGES }} |