Skip to content

Commit dbbdb6e

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

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
@@ -95,4 +95,6 @@ jobs:
9595
platform: "${{ matrix.platform }}"
9696
# rhds/notebooks builds from AIPCC base images that are RHEL-based
9797
subscription: ${{ true }}
98+
env:
99+
KONFLUX: yes
98100
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

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

0 commit comments

Comments
 (0)