Skip to content

Conversation

@joshuabaird
Copy link
Collaborator

Re-factors the CI workflows for building & pushing the fluent-bit images to match what was previously done for the fluentd image here.

The main motivators behind this:

Signed-off-by: Josh Baird <jbaird@galileo.io>
@joshuabaird joshuabaird marked this pull request as ready for review March 20, 2025 17:11
@joshuabaird
Copy link
Collaborator Author

@marcofranssen Re-factor of the fluent-bit CI workflows with your changes incorporated from #1515

sources: |
${{ env.GHCR_REPO }}@${{ needs.build-debug.outputs.digest_amd64 }}
${{ env.GHCR_REPO }}@${{ needs.build-debug.outputs.digest_arm64 }}

No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This thing would change with .editorconfig. Maybe good idea to install the plugin for your IDEA.

manifest:
name: Publish image manifests
runs-on: ubuntu-latest
needs: [build, build-debug,build-tags]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
needs: [build, build-debug,build-tags]
needs: [build, build-debug, build-tags]

Nit


permissions:
contents: read
packages: write
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
packages: write

The specific jobs that have to write are already below with specific permissions to allow writes.

You might even consider moving the read also to the specific jobs.

build-debug:
name: Build/push debug image (${{ matrix.platform }})
runs-on: ${{ matrix.runs-on }}
needs: [build-info,build-tags]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
needs: [build-info,build-tags]
needs: [build-info, build-tags]

Nit

id: output-digests
run: |
platform="${{ matrix.platform }}"
# Convert "linux/amd64" to just amd64 for the output variable name
Copy link
Collaborator

@marcofranssen marcofranssen Mar 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Convert "linux/amd64" to just amd64 for the output variable name
# Convert "linux/amd64" or "linux/arm64" to just amd64 or arm64 for the output variable name

build:
name: Build/push image (${{ matrix.platform }})
runs-on: ${{ matrix.runs-on }}
needs: [build-info,build-tags]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
needs: [build-info,build-tags]
needs: [build-info, build-tags]

Nit

@marcofranssen
Copy link
Collaborator

@joshuabaird I have rebased #1515 once more on the master branch, so diff reduced and handled conflicts with all the other improvements done in other PRs. You might want to double check copying some stuff.

I can also change my PR to just have the docs update and push workflow trigger adjustement afterwards, so the PR doesn't doe the other changes. Then basically both PRs still add value.

@joshuabaird joshuabaird requested a review from cw-Guo March 21, 2025 13:33
@joshuabaird
Copy link
Collaborator Author

@marcofranssen I think I addressed all of your feedback. Thanks!

cw-Guo
cw-Guo previously approved these changes Mar 21, 2025
@wenchajun
Copy link
Member

please resolve conflicts

@benjaminhuo
Copy link
Member

cc @wanjunlei

@benjaminhuo
Copy link
Member

That's fantastic! Thanks @joshuabaird

cw-Guo and others added 11 commits March 24, 2025 09:09
Signed-off-by: juicer <cwguoz@gmail.com>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: juicer <cwguoz@gmail.com>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: chengweiguo <chengweiguo@bytedance.com>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: juicer <cwguoz@gmail.com>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Remove the redundant "configmaps" from resources.

Signed-off-by: duj4 <boyu.du@yahoo.com>
Signed-off-by: Josh Baird <jbaird@galileo.io>
- Updated VERSION file - Updated manifest files - Updated values.yaml in Helm chart

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: joshuabaird <6271918+joshuabaird@users.noreply.github.com>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Signed-off-by: Josh Baird <jbaird@galileo.io>
@joshuabaird joshuabaird force-pushed the chore/fluentbit-ci-refactor branch from f894065 to 97de29d Compare March 24, 2025 13:09
@joshuabaird
Copy link
Collaborator Author

Closing this in favor of #1531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants