Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable stable-daily channel #1779

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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