Skip to content

Commit 4fe374c

Browse files
committed
refactor: forking in progress
1 parent 132fa5b commit 4fe374c

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/build-all.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ on:
44
workflow_dispatch:
55
push:
66
paths:
7-
- "containers/openami/**"
8-
- "containers/scripts/discover-build-matrix.sh"
9-
- "containers/.github/workflows/build-all.yml"
7+
- "openami/**"
8+
- "scripts/discover-build-matrix.sh"
9+
- ".github/workflows/build-all.yml"
1010
schedule:
1111
- cron: "0 2 * * *" # nightly
1212

@@ -32,12 +32,12 @@ jobs:
3232
id: discover
3333
shell: bash
3434
env:
35-
OPENAMI_DIR: containers/openami
35+
OPENAMI_DIR: openami
3636
STRICT_MISSING: "true"
3737
run: |
3838
set -euo pipefail
39-
chmod +x containers/scripts/discover-build-matrix.sh
40-
containers/scripts/discover-build-matrix.sh >> "$GITHUB_OUTPUT"
39+
chmod +x scripts/discover-build-matrix.sh
40+
scripts/discover-build-matrix.sh >> "$GITHUB_OUTPUT"
4141
4242
build:
4343
name: Build and push

.github/workflows/ci-pipeline.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Containers PR CI
33
on:
44
pull_request:
55
paths:
6-
- "containers/openami/**"
7-
- "containers/scripts/**"
8-
- "containers/.github/workflows/ci-pipeline.yml"
6+
- "openami/**"
7+
- "scripts/**"
8+
- ".github/workflows/ci-pipeline.yml"
99

1010
permissions:
1111
contents: read
@@ -37,8 +37,8 @@ jobs:
3737
files="$(gh api --paginate "/repos/${GITHUB_REPOSITORY}/pulls/${PR_NUM}/files" | jq -r '.[].filename')"
3838
3939
# Collect changed images under containers/openami/<image>/
40-
mapfile -t changed_imgs < <(echo "$files" | grep -E '^containers/openami/[^/]+/' | cut -d/ -f1-3 | sort -u || true)
41-
mapfile -t changed_dockerfiles < <(echo "$files" | grep -E '^containers/openami/.*/Dockerfile$' | sort -u || true)
40+
mapfile -t changed_imgs < <(echo "$files" | grep -E '^openami/[^/]+/' | cut -d/ -f1-2 | sort -u || true)
41+
mapfile -t changed_dockerfiles < <(echo "$files" | grep -E '^openami/.*/Dockerfile$' | sort -u || true)
4242
4343
if [[ ${#changed_imgs[@]} -eq 0 ]]; then
4444
echo "No image changes detected, skip."
@@ -52,7 +52,7 @@ jobs:
5252
inc='[]'
5353
for imgdir in "${changed_imgs[@]}"; do
5454
name="$(basename "$imgdir")"
55-
base_dir="containers/openami/${name}"
55+
base_dir="openami/${name}"
5656
tfile="${base_dir}/tags.txt"
5757
if [[ ! -f "$tfile" ]]; then
5858
echo "ERROR: Missing tags.txt for image ${name}"

0 commit comments

Comments
 (0)