Bump fluentbit to 2.1.9 (#921) #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Building Fluent Bit image | |
on: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- 'v*' | |
paths: | |
- ".github/workflows/build-fb-image.yaml" | |
- "cmd/fluent-watcher/fluentbit/**" | |
- "cmd/fluent-watcher/hooks/**" | |
- "pkg/filenotify/**" | |
env: | |
FB_IMG: 'kubesphere/fluent-bit:v2.1.9' | |
FB_IMG_DEBUG: 'kubesphere/fluent-bit:v2.1.9-debug' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
name: Build Image for Fluent Bit | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.REGISTRY_USER }} | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and Push Image for Fluent Bit | |
run: | | |
make build-fb -e FB_IMG=${{ env.FB_IMG }} | |
make build-fb-debug -e FB_IMG_DEBUG=${{ env.FB_IMG_DEBUG }} |