Skip to content

Commit

Permalink
feat(ci): enable manual building of stable or stable-daily
Browse files Browse the repository at this point in the history
  • Loading branch information
befanyt committed Oct 20, 2024
1 parent ac0527a commit afa39c1
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/build-coreos-aurora-daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Aurora Stable Daily
on:
workflow_dispatch:

jobs:
build:
name: build
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
with:
brand_name: aurora
fedora_version: stable
rechunk: true
build_stable_daily: true
build_stable_weekly: false

16 changes: 16 additions & 0 deletions .github/workflows/build-coreos-aurora-weekly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Aurora Stable Weekly
on:
workflow_dispatch:

jobs:
build:
name: build
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
with:
brand_name: aurora
fedora_version: stable
rechunk: true
build_stable_daily: false
build_stable_weekly: true

17 changes: 17 additions & 0 deletions .github/workflows/build-coreos-bluefin-daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Bluefin Stable Daily
on:
workflow_dispatch:

jobs:
build:
name: build
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
with:
brand_name: bluefin
fedora_version: stable
rechunk: true
build_stable_daily: true
build_stable_weekly: false


16 changes: 16 additions & 0 deletions .github/workflows/build-coreos-bluefin-weekly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Bluefin Stable Weekly
on:
workflow_dispatch:

jobs:
build:
name: build
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
with:
brand_name: bluefin
fedora_version: stable
rechunk: true
build_stable_daily: false
build_stable_weekly: true

20 changes: 19 additions & 1 deletion .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ on:
required: false
type: string
default: Tuesday
build_stable_daily:
description: "Build with 'stable-daily' tag"
required: false
type: boolean
default: true
build_stable_weekly:
description: "Build with 'stable' tag"
required: false
type: boolean
default: true
outputs:
images:
description: "An array of images built and pushed to the registry"
Expand Down Expand Up @@ -251,6 +261,10 @@ jobs:
if [[ ${{ github.event_name }} == "schedule" ]] && \
[[ "${{ inputs.weekly_tag_day }}" != "${TODAY}" ]]; then
BUILD_TAGS+=("stable-daily" "stable-daily-${TIMESTAMP}")
elif [[ ${{ inputs.build_stable_daily }} == "false" ]]; then
BUILD_TAGS+=("stable" "stable-${TIMESTAMP}")
elif [[ ${{ inputs.build_stable_weekly }} == "false" ]]; then
BUILD_TAGS+=("stable-daily" "stable-daily-${TIMESTAMP}")
else
BUILD_TAGS+=("stable" "stable-${TIMESTAMP}")
BUILD_TAGS+=("stable-daily" "stable-daily-${TIMESTAMP}")
Expand Down Expand Up @@ -290,7 +304,11 @@ jobs:
BUILD_TAGS+=("beta")
echo "DEFAULT_TAG=beta" >> $GITHUB_ENV
elif [[ "$IS_COREOS" == "true" ]]; then
echo "DEFAULT_TAG=stable-daily" >> $GITHUB_ENV
if [[ ${{ inputs.build_stable_daily }} == "true" ]]; then
echo "DEFAULT_TAG=stable-daily" >> $GITHUB_ENV
else
echo "DEFAULT_TAG=stable" >> $GITHUB_ENV
fi
fi
fi
Expand Down

0 comments on commit afa39c1

Please sign in to comment.