Skip to content

Commit

Permalink
add image options to gh workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin <[email protected]>
  • Loading branch information
KPostOffice committed Jul 10, 2024
1 parent facc957 commit 64330da
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/project-codeflare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ on:
kueue-version:
description: 'Tested version of Kueue (for example: v0.0.0)'
required: true
cert-generator-image:
description: 'Image used to generate RayCluster certificates'
required: true
default: 'registry.redhat.io/ubi9:latest'
oauth-proxy-image:
description: 'Image used to run OAuth proxy'
required: true
default: 'registry.redhat.io/openshift4/ose-oauth-proxy:latest'
is-stable:
description: 'Select if the built images should be tagged as stable'
required: true
Expand Down Expand Up @@ -98,7 +106,20 @@ jobs:
steps:
- name: Release CodeFlare operator
run: |
gh workflow run tag-and-build.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/codeflare-operator --ref ${{ github.ref }} --field is-stable=${{ github.event.inputs.is-stable }} --field version=${{ github.event.inputs.operator-version }} --field replaces=${{ github.event.inputs.replaces }} --field codeflare-sdk-version=${{ github.event.inputs.codeflare-sdk-version }} --field appwrapper-version=${{ github.event.inputs.appwrapper-version }} --field kuberay-version=${{ github.event.inputs.kuberay-version }} --field kueue-version=${{ github.event.inputs.kueue-version }} --field quay-organization=${{ github.event.inputs.quay-organization }} --field community-operators-prod-fork-organization=${{ github.event.inputs.codeflare-repository-organization }} --field community-operators-prod-organization=${{ github.event.inputs.community-operators-prod-organization }}
gh workflow run tag-and-build.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/codeflare-operator \
--ref ${{ github.ref }} \
--field is-stable=${{ github.event.inputs.is-stable }} \
--field version=${{ github.event.inputs.operator-version }} \
--field replaces=${{ github.event.inputs.replaces }} \
--field codeflare-sdk-version=${{ github.event.inputs.codeflare-sdk-version }} \
--field appwrapper-version=${{ github.event.inputs.appwrapper-version }} \
--field kuberay-version=${{ github.event.inputs.kuberay-version }} \
--field kueue-version=${{ github.event.inputs.kueue-version }} \
--field quay-organization=${{ github.event.inputs.quay-organization }} \
--field community-operators-prod-fork-organization=${{ github.event.inputs.codeflare-repository-organization }} \
--field community-operators-prod-organization=${{ github.event.inputs.community-operators-prod-organization }} \
--field cert-generator-image=${{ github.event.inputs.cert-generator-image }} \
--field oauth-proxy-image=${{ github.event.inputs.oauth-proxy-image }}
env:
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
shell: bash
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/tag-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ on:
description: 'Tested version of Kueue'
required: true
default: 'v0.0.0-dev'
cert-generator-image:
description: 'Image used to generate RayCluster certificates'
required: true
default: 'registry.redhat.io/ubi9:latest'
oauth-proxy-image:
description: 'Image used to run OAuth proxy'
required: true
default: 'registry.redhat.io/openshift4/ose-oauth-proxy:latest'
is-stable:
description: 'Select if the built image should be tagged as stable'
required: true
Expand Down Expand Up @@ -124,7 +132,10 @@ jobs:
- name: Image Build and Push
run: |
make build
make image-build -e IMG=quay.io/${{ github.event.inputs.quay-organization }}/codeflare-operator:${{ github.event.inputs.version }}
make image-build \
-e IMG=quay.io/${{ github.event.inputs.quay-organization }}/codeflare-operator:${{ github.event.inputs.version }} \
-e CERT_GENERATOR_IMAGE=${{ github.event.inputs.cert-generator-image }} \
-e OAUTH_PROXY_IMAGE=${{ github.event.inputs.oauth-proxy-image }}
make image-push -e IMG=quay.io/${{ github.event.inputs.quay-organization }}/codeflare-operator:${{ github.event.inputs.version }}
- name: Image Push as stable tag
Expand Down

0 comments on commit 64330da

Please sign in to comment.