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

ci: support 3.2 releases as latest version #9445

Merged
merged 2 commits into from
Nov 13, 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
7 changes: 7 additions & 0 deletions .github/workflows/cron-unstable-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
schedule:
- cron: "0 6 * * *" # master build
- cron: "0 12 * * *" # 3.0 build
- cron: "0 18 * * *" # 3.1 build

# We do not want a new unstable build to run whilst we are releasing the current unstable build.
concurrency: unstable-build-release
Expand Down Expand Up @@ -57,6 +58,12 @@ jobs:
echo "cron_branch=3.0" >> $GITHUB_ENV
shell: bash

- name: 3.1 run
if: github.event_name == 'schedule' && github.event.schedule=='0 18 * * *'
run: |
echo "cron_branch=3.1" >> $GITHUB_ENV
shell: bash

- name: Output the branch to use
id: branch
run: |
Expand Down
51 changes: 25 additions & 26 deletions .github/workflows/staging-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,8 @@ jobs:
TAG: ${{ steps.get-tag.outputs.tag }}

staging-release-images-latest-tags:
# Only update latest tags for 3.1 releases
if: startsWith(github.event.inputs.version, '3.1')
# if: startsWith(github.event.inputs.version, '4.0')
# Only update latest tags for 3.2 releases
if: startsWith(github.event.inputs.version, '3.2')
name: Release latest Linux container images
runs-on: ubuntu-latest
needs:
Expand Down Expand Up @@ -804,8 +803,7 @@ jobs:
target_commitish: '3.0'
make_latest: false

- name: Release 3.1 and latest
# TODO: change to 3.1 branch once 4.0 series is ready
- name: Release 3.1 - not latest
uses: softprops/action-gh-release@v2
if: startsWith(inputs.version, '3.1')
with:
Expand All @@ -814,18 +812,19 @@ jobs:
generate_release_notes: true
name: "Fluent Bit ${{ inputs.version }}"
tag_name: v${{ inputs.version }}
make_latest: true
target_commitish: '3.1'
make_latest: false

# - name: Release 4.0 and latest
# uses: softprops/action-gh-release@v2
# if: startsWith(inputs.version, '4.0')
# with:
# body: "https://fluentbit.io/announcements/v${{ inputs.version }}/"
# draft: false
# generate_release_notes: true
# name: "Fluent Bit ${{ inputs.version }}"
# tag_name: v${{ inputs.version }}
# make_latest: true
- name: Release 3.2 and latest
uses: softprops/action-gh-release@v2
if: startsWith(inputs.version, '3.2')
with:
body: "https://fluentbit.io/announcements/v${{ inputs.version }}/"
draft: false
generate_release_notes: true
name: "Fluent Bit ${{ inputs.version }}"
tag_name: v${{ inputs.version }}
make_latest: true

staging-release-windows-checksums:
name: Get Windows checksums for new release
Expand Down Expand Up @@ -919,20 +918,20 @@ jobs:
ref: 3.0
token: ${{ secrets.GH_PA_TOKEN }}

- name: Release 3.1 and latest
# TODO: change to 3.1 branch once 4.0 series is ready
- name: Release 3.1 - not latest
if: startsWith(inputs.version, '3.1')
uses: actions/checkout@v4
with:
repository: fluent/fluent-bit-docs
ref: 3.1
token: ${{ secrets.GH_PA_TOKEN }}

# - name: Release 4.0 and latest
# if: startsWith(inputs.version, '4.0')
# uses: actions/checkout@v4
# with:
# repository: fluent/fluent-bit-docs
# token: ${{ secrets.GH_PA_TOKEN }}
- name: Release 3.2 and latest
if: startsWith(inputs.version, '3.2')
uses: actions/checkout@v4
with:
repository: fluent/fluent-bit-docs
token: ${{ secrets.GH_PA_TOKEN }}

- name: Ensure we have the script we need
run: |
Expand Down Expand Up @@ -1018,8 +1017,8 @@ jobs:
with:
ref: 3.1

- name: Release 4.0
if: startsWith(inputs.version, '4.0')
- name: Release 3.2
if: startsWith(inputs.version, '3.2')
uses: actions/checkout@v4
with:
ref: master
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# docker buildx build --platform "linux/amd64,linux/arm64,linux/arm/v7,linux/s390x" -f ./dockerfiles/Dockerfile.multiarch --build-arg FLB_TARBALL=https://github.com/fluent/fluent-bit/archive/v1.8.11.tar.gz ./dockerfiles/

# Set this to the current release version: it gets done so as part of the release.
ARG RELEASE_VERSION=3.1.7
ARG RELEASE_VERSION=3.2.0

# For multi-arch builds - assumption is running on an AMD64 host
FROM multiarch/qemu-user-static:x86_64-arm AS qemu-arm32
Expand Down
2 changes: 1 addition & 1 deletion fluent-bit-3.1.7.bb → fluent-bit-3.2.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
SECTION = "net"

PR = "r0"
PV = "3.1.7"
PV = "3.2.0"

SRCREV = "v${PV}"
SRC_URI = "git://github.com/fluent/fluent-bit.git;nobranch=1"
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fluent-bit
base: core18
version: '3.1.7'
version: '3.2.0'
summary: High performance logs and stream processor
description: |
Fluent Bit is a high performance log processor and stream processor for Linux.
Expand Down
Loading