Skip to content

Commit

Permalink
feat: enable stable-daily channel (#1779)
Browse files Browse the repository at this point in the history
  • Loading branch information
befanyt authored Oct 13, 2024
1 parent 50b84c4 commit 3201dd3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-coreos-aurora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '**.md'
- 'system_files/silverblue/**'
schedule:
- cron: '41 5 * * 2' # 5:41 UTC every Tuesday
- cron: '41 5 * * *' # 5:41 UTC everyday
workflow_dispatch:

jobs:
Expand All @@ -20,4 +20,5 @@ jobs:
brand_name: aurora
fedora_version: stable
rechunk: true
weekly_tag_day: Tuesday

3 changes: 2 additions & 1 deletion .github/workflows/build-coreos-bluefin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '**.md'
- 'system_files/kinoite/**'
schedule:
- cron: '41 5 * * 2' # 5:41 UTC every Tuesday
- cron: '41 5 * * *' # 5:41 UTC everyday
workflow_dispatch:

jobs:
Expand All @@ -20,4 +20,5 @@ jobs:
brand_name: bluefin
fedora_version: stable
rechunk: true
weekly_tag_day: Tuesday

17 changes: 15 additions & 2 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
required: false
type: boolean
default: false
weekly_tag_day:
description: "Tag stable weekly on for example 'Tuesday'"
required: false
type: string
default: Tuesday
outputs:
images:
description: "An array of images built and pushed to the registry"
Expand Down Expand Up @@ -237,7 +242,15 @@ jobs:
fi
if [[ ${{ matrix.fedora_version }} == "stable" ]]; then
BUILD_TAGS=("${FEDORA_VERSION}" "${FEDORA_VERSION}-${TIMESTAMP}")
BUILD_TAGS=("${FEDORA_VERSION}-daily" "${FEDORA_VERSION}-daily-${TIMESTAMP}")
if [[ ${{ github.event_name }} == "schedule" ]]; then
TODAY="$(date +%A)"
if [[ "${TODAY}" == "${{ inputs.weekly_tag_day }}" ]]; then
BUILD_TAGS+=("${FEDORA_VERSION}" "${FEDORA_VERSION}-${TIMESTAMP}")
fi
else
BUILD_TAGS+=("${FEDORA_VERSION}" "${FEDORA_VERSION}-${TIMESTAMP}")
fi
else
BUILD_TAGS=("${{ env.fedora_version }}" "${{ env.fedora_version }}-${TIMESTAMP}")
fi
Expand Down Expand Up @@ -267,7 +280,7 @@ jobs:
BUILD_TAGS+=("gts")
echo "DEFAULT_TAG=gts" >> $GITHUB_ENV
elif [[ "$IS_COREOS" == "true" ]]; then
echo "DEFAULT_TAG=stable" >> $GITHUB_ENV
echo "DEFAULT_TAG=stable-daily" >> $GITHUB_ENV
fi
fi
Expand Down

0 comments on commit 3201dd3

Please sign in to comment.