feat: adds fluentd monitor_agent input plugin (#967) #199
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 Operator image | |
on: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- 'v*' | |
paths: | |
- ".github/workflows/build-op-image.yaml" | |
- "apis/**" | |
- "cmd/fluent-manager/**" | |
- "controllers/**" | |
- "hack/**" | |
- "manifests/setup/setup.yaml" | |
- "pkg/fluentd/router/**" | |
- "pkg/fluentd/operator/**" | |
- "pkg/fluentd/utils/**" | |
- "Makefile" | |
env: | |
REGISTRY_REPO: 'kubesphere' | |
jobs: | |
operator-build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
name: Build Image for Fluent Operator | |
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@v4 | |
with: | |
fetch-depth: 0 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.REGISTRY_USER }} | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and Push Image for Fluent Operator | |
run: | | |
tag=$(cat VERSION | tr -d " \t\n\r") | |
make build-op -e FO_IMG=${{ env.REGISTRY_REPO }}/fluent-operator:$tag |