Skip to content

Commit 3787609

Browse files
committed
chore(ci): begin building Dockerfile.konflux.* images based on AIPCC bases in red-hat-data-services
1 parent 8d97e7c commit 3787609

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.github/workflows/build-notebooks-pr-aipcc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,6 @@ jobs:
9494
platform: "${{ matrix.platform }}"
9595
# rhds/notebooks builds from AIPCC base images that are RHEL-based
9696
subscription: ${{ true }}
97+
env:
98+
KONFLUX: yes
9799
secrets: inherit

.github/workflows/build-notebooks-push.yaml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
# In fact, skip the build if there are only changes in manifests and nowhere else
1010
- manifests/**
1111
"workflow_dispatch":
12+
inputs:
13+
"KONFLUX":
14+
description: "Build also images from Dockerfile.konflux.*; requires subscription"
15+
type: boolean
16+
default: false
1217
"schedule":
1318
- "cron": "0 2 * * *"
1419

@@ -51,12 +56,29 @@ jobs:
5156
fail-fast: false
5257
matrix: "${{ fromJson(needs.gen.outputs.matrix) }}"
5358
uses: ./.github/workflows/build-notebooks-TEMPLATE.yaml
54-
if: ${{ fromJson(needs.gen.outputs.has_jobs) }}
59+
if: ${{ github.repository != 'red-hat-data-services/notebooks' && fromJson(needs.gen.outputs.has_jobs) }}
60+
with:
61+
target: "${{ matrix.target }}"
62+
python: "${{ matrix.python }}"
63+
github: "${{ toJSON(github) }}"
64+
platform: "${{ matrix.platform }}"
65+
subscription: "${{ matrix.subscription }}"
66+
secrets: inherit
67+
68+
build-aipcc:
69+
needs: ["gen"]
70+
strategy:
71+
fail-fast: false
72+
matrix: "${{ fromJson(needs.gen.outputs.matrix) }}"
73+
uses: ./.github/workflows/build-notebooks-TEMPLATE.yaml
74+
if: ${{ (github.repository == 'red-hat-data-services/notebooks' || inputs.KONFLUX) && fromJson(needs.gen.outputs.has_jobs) }}
5575
with:
5676
target: "${{ matrix.target }}"
5777
python: "${{ matrix.python }}"
5878
github: "${{ toJSON(github) }}"
5979
platform: "${{ matrix.platform }}"
6080
# rhds/notebooks builds from AIPCC base images that are RHEL-based
61-
subscription: "${{ matrix.subscription || (github.repository == 'red-hat-data-services/notebooks') }}"
81+
subscription: ${{ true }}
82+
env:
83+
KONFLUX: yes
6284
secrets: inherit

0 commit comments

Comments
 (0)