fix(ci): align minimal JupyterLab and codeserver hermetic feast lock #4787
Workflow file for this run
This file contains hidden or 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
| --- | |
| "name": "Build Notebooks (push)" | |
| "on": | |
| "push": | |
| "paths-ignore": | |
| # Don't build images if the only thing that changed is image digests in manifests | |
| - manifests/base/params-latest.env | |
| - manifests/base/params.env | |
| # In fact, skip the build if there are only changes in manifests and nowhere else | |
| - manifests/** | |
| "workflow_dispatch": | |
| "schedule": | |
| - "cron": "0 2 * * *" | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| gen: | |
| name: Generate job matrix | |
| runs-on: ubuntu-latest | |
| # for odh-io/notebooks and rhds/notebooks, allow only main, rhoai-*, release-* | |
| if: ${{ github.event_name == 'workflow_dispatch' || | |
| (github.repository != 'opendatahub-io/notebooks' && github.repository != 'red-hat-data-services/notebooks') | |
| || github.ref_name == 'main' || github.ref_name == '2024b' || github.ref_name == '2024a' | |
| || startsWith(github.ref_name, 'rhoai-') || startsWith(github.ref_name, 'release-') }} | |
| outputs: | |
| matrix: ${{ steps.gen.outputs.matrix }} | |
| has_jobs: ${{ steps.gen.outputs.has_jobs }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false # https://github.com/actions/checkout/issues/2312 | |
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| with: | |
| go-version-file: scripts/buildinputs/go.mod | |
| cache-dependency-path: scripts/buildinputs/go.mod | |
| - name: Determine targets to build (we want to build everything on push) | |
| run: | | |
| set -x | |
| python3 ci/cached-builds/gen_gha_matrix_jobs.py \ | |
| --s390x-images include | |
| id: gen | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| shell: bash | |
| build: | |
| needs: ["gen"] | |
| strategy: | |
| fail-fast: false | |
| matrix: "${{ fromJson(needs.gen.outputs.matrix) }}" | |
| uses: ./.github/workflows/build-notebooks-TEMPLATE.yaml | |
| if: ${{ fromJson(needs.gen.outputs.has_jobs) }} | |
| with: | |
| target: "${{ matrix.target }}" | |
| python: "${{ matrix.python }}" | |
| github: "${{ toJSON(github) }}" | |
| platform: "${{ matrix.platform }}" | |
| # Matrix gen only sets subscription for *rhel* targets. RHOAI ubi9 images still | |
| # need AppStream (e.g. texlive RPMs in install_pdf_deps.sh). Match build-notebooks-pr.yaml: | |
| # force subscription for everything except hermetic codeserver (public UBI locks). | |
| subscription: ${{ !contains(matrix.target, 'codeserver') }} | |
| product: rhoai | |
| secrets: inherit |