Skip to content

refactor merge docker and github actions workflow gen logic #978

refactor merge docker and github actions workflow gen logic

refactor merge docker and github actions workflow gen logic #978

#
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go
name: 'Build docker image: discoverer-k8s'
on:
push:
branches:
- main
- release/v*.*
- '!release/v*.*.*'
tags:
- '*.*.*'
- '*.*.*-*'
- v*.*.*
- v*.*.*-*
pull_request:
paths:
- '!**/*_mock.go'
- '!**/*_test.go'
- .github/actions/docker-build/action.yaml
- .github/workflows/_docker-image.yaml
- .github/workflows/dockers-discoverer-k8s-image.yaml
- Makefile
- Makefile.d/**
- apis/proto/**
- cmd/discoverer/k8s/*.go/*.go
- dockers/discoverer/k8s/Dockerfile
- github.com/vdaas/vald/apis/grpc/v1/discoverer/*.go
- github.com/vdaas/vald/apis/grpc/v1/payload/*.go
- github.com/vdaas/vald/apis/grpc/v1/rpc/errdetails/*.go
- github.com/vdaas/vald/internal/backoff/*.go
- github.com/vdaas/vald/internal/cache/*.go
- github.com/vdaas/vald/internal/cache/cacher/*.go
- github.com/vdaas/vald/internal/cache/gache/*.go
- github.com/vdaas/vald/internal/circuitbreaker/*.go
- github.com/vdaas/vald/internal/config/*.go
- github.com/vdaas/vald/internal/conv/*.go
- github.com/vdaas/vald/internal/db/kvs/redis/*.go
- github.com/vdaas/vald/internal/db/nosql/cassandra/*.go
- github.com/vdaas/vald/internal/db/rdb/mysql/*.go
- github.com/vdaas/vald/internal/db/rdb/mysql/dbr/*.go
- github.com/vdaas/vald/internal/encoding/json/*.go
- github.com/vdaas/vald/internal/errors/*.go
- github.com/vdaas/vald/internal/file/*.go
- github.com/vdaas/vald/internal/info/*.go
- github.com/vdaas/vald/internal/io/*.go
- github.com/vdaas/vald/internal/k8s/*.go
- github.com/vdaas/vald/internal/k8s/metrics/node/*.go
- github.com/vdaas/vald/internal/k8s/metrics/pod/*.go
- github.com/vdaas/vald/internal/k8s/node/*.go
- github.com/vdaas/vald/internal/k8s/pod/*.go
- github.com/vdaas/vald/internal/k8s/service/*.go
- github.com/vdaas/vald/internal/log/*.go
- github.com/vdaas/vald/internal/log/format/*.go
- github.com/vdaas/vald/internal/log/glg/*.go
- github.com/vdaas/vald/internal/log/level/*.go
- github.com/vdaas/vald/internal/log/logger/*.go
- github.com/vdaas/vald/internal/log/nop/*.go
- github.com/vdaas/vald/internal/log/retry/*.go
- github.com/vdaas/vald/internal/log/zap/*.go
- github.com/vdaas/vald/internal/net/*.go
- github.com/vdaas/vald/internal/net/control/*.go
- github.com/vdaas/vald/internal/net/grpc/*.go
- github.com/vdaas/vald/internal/net/grpc/admin/*.go
- github.com/vdaas/vald/internal/net/grpc/codes/*.go
- github.com/vdaas/vald/internal/net/grpc/credentials/*.go
- github.com/vdaas/vald/internal/net/grpc/errdetails/*.go
- github.com/vdaas/vald/internal/net/grpc/health/*.go
- github.com/vdaas/vald/internal/net/grpc/interceptor/client/metric/*.go
- github.com/vdaas/vald/internal/net/grpc/interceptor/client/trace/*.go
- github.com/vdaas/vald/internal/net/grpc/interceptor/server/logging/*.go
- github.com/vdaas/vald/internal/net/grpc/interceptor/server/metric/*.go
- github.com/vdaas/vald/internal/net/grpc/interceptor/server/recover/*.go
- github.com/vdaas/vald/internal/net/grpc/interceptor/server/trace/*.go
- github.com/vdaas/vald/internal/net/grpc/keepalive/*.go
- github.com/vdaas/vald/internal/net/grpc/logger/*.go
- github.com/vdaas/vald/internal/net/grpc/pool/*.go
- github.com/vdaas/vald/internal/net/grpc/proto/*.go
- github.com/vdaas/vald/internal/net/grpc/reflection/*.go
- github.com/vdaas/vald/internal/net/grpc/status/*.go
- github.com/vdaas/vald/internal/net/grpc/types/*.go
- github.com/vdaas/vald/internal/net/http/dump/*.go
- github.com/vdaas/vald/internal/net/http/json/*.go
- github.com/vdaas/vald/internal/net/http/metrics/*.go
- github.com/vdaas/vald/internal/net/http/middleware/*.go
- github.com/vdaas/vald/internal/net/http/rest/*.go
- github.com/vdaas/vald/internal/net/http/routing/*.go
- github.com/vdaas/vald/internal/net/quic/*.go
- github.com/vdaas/vald/internal/observability/*.go
- github.com/vdaas/vald/internal/observability/attribute/*.go
- github.com/vdaas/vald/internal/observability/exporter/*.go
- github.com/vdaas/vald/internal/observability/exporter/otlp/*.go
- github.com/vdaas/vald/internal/observability/metrics/*.go
- github.com/vdaas/vald/internal/observability/metrics/backoff/*.go
- github.com/vdaas/vald/internal/observability/metrics/circuitbreaker/*.go
- github.com/vdaas/vald/internal/observability/metrics/grpc/*.go
- github.com/vdaas/vald/internal/observability/metrics/mem/*.go
- github.com/vdaas/vald/internal/observability/metrics/runtime/cgo/*.go
- github.com/vdaas/vald/internal/observability/metrics/runtime/goroutine/*.go
- github.com/vdaas/vald/internal/observability/metrics/version/*.go
- github.com/vdaas/vald/internal/observability/trace/*.go
- github.com/vdaas/vald/internal/os/*.go
- github.com/vdaas/vald/internal/params/*.go
- github.com/vdaas/vald/internal/rand/*.go
- github.com/vdaas/vald/internal/runner/*.go
- github.com/vdaas/vald/internal/safety/*.go
- github.com/vdaas/vald/internal/servers/*.go
- github.com/vdaas/vald/internal/servers/server/*.go
- github.com/vdaas/vald/internal/servers/starter/*.go
- github.com/vdaas/vald/internal/strings/*.go
- github.com/vdaas/vald/internal/sync/*.go
- github.com/vdaas/vald/internal/sync/errgroup/*.go
- github.com/vdaas/vald/internal/sync/semaphore/*.go
- github.com/vdaas/vald/internal/sync/singleflight/*.go
- github.com/vdaas/vald/internal/timeutil/*.go
- github.com/vdaas/vald/internal/timeutil/location/*.go
- github.com/vdaas/vald/internal/tls/*.go
- github.com/vdaas/vald/internal/version/*.go
- github.com/vdaas/vald/pkg/discoverer/k8s/config/*.go
- github.com/vdaas/vald/pkg/discoverer/k8s/handler/grpc/*.go
- github.com/vdaas/vald/pkg/discoverer/k8s/handler/rest/*.go
- github.com/vdaas/vald/pkg/discoverer/k8s/router/*.go
- github.com/vdaas/vald/pkg/discoverer/k8s/service/*.go
- github.com/vdaas/vald/pkg/discoverer/k8s/usecase/*.go
- go.mod
- go.sum
- hack/docker/gen/main.go
- versions/GO_VERSION
pull_request_target:
paths:
- '!**/*_mock.go'
- '!**/*_test.go'
- .github/actions/docker-build/action.yaml
- .github/workflows/_docker-image.yaml
- .github/workflows/dockers-discoverer-k8s-image.yaml
- Makefile
- Makefile.d/**
- apis/proto/**
- cmd/discoverer/k8s/*.go/*.go
- dockers/discoverer/k8s/Dockerfile
- github.com/vdaas/vald/apis/grpc/v1/discoverer/*.go
- github.com/vdaas/vald/apis/grpc/v1/payload/*.go
- github.com/vdaas/vald/apis/grpc/v1/rpc/errdetails/*.go
- github.com/vdaas/vald/internal/backoff/*.go
- github.com/vdaas/vald/internal/cache/*.go
- github.com/vdaas/vald/internal/cache/cacher/*.go
- github.com/vdaas/vald/internal/cache/gache/*.go
- github.com/vdaas/vald/internal/circuitbreaker/*.go
- github.com/vdaas/vald/internal/config/*.go
- github.com/vdaas/vald/internal/conv/*.go
- github.com/vdaas/vald/internal/db/kvs/redis/*.go
- github.com/vdaas/vald/internal/db/nosql/cassandra/*.go
- github.com/vdaas/vald/internal/db/rdb/mysql/*.go
- github.com/vdaas/vald/internal/db/rdb/mysql/dbr/*.go
- github.com/vdaas/vald/internal/encoding/json/*.go
- github.com/vdaas/vald/internal/errors/*.go
- github.com/vdaas/vald/internal/file/*.go
- github.com/vdaas/vald/internal/info/*.go
- github.com/vdaas/vald/internal/io/*.go
- github.com/vdaas/vald/internal/k8s/*.go
- github.com/vdaas/vald/internal/k8s/metrics/node/*.go
- github.com/vdaas/vald/internal/k8s/metrics/pod/*.go
- github.com/vdaas/vald/internal/k8s/node/*.go
- github.com/vdaas/vald/internal/k8s/pod/*.go
- github.com/vdaas/vald/internal/k8s/service/*.go
- github.com/vdaas/vald/internal/log/*.go
- github.com/vdaas/vald/internal/log/format/*.go
- github.com/vdaas/vald/internal/log/glg/*.go
- github.com/vdaas/vald/internal/log/level/*.go
- github.com/vdaas/vald/internal/log/logger/*.go
- github.com/vdaas/vald/internal/log/nop/*.go
- github.com/vdaas/vald/internal/log/retry/*.go
- github.com/vdaas/vald/internal/log/zap/*.go
- github.com/vdaas/vald/internal/net/*.go
- github.com/vdaas/vald/internal/net/control/*.go
- github.com/vdaas/vald/internal/net/grpc/*.go
- github.com/vdaas/vald/internal/net/grpc/admin/*.go
- github.com/vdaas/vald/internal/net/grpc/codes/*.go
- github.com/vdaas/vald/internal/net/grpc/credentials/*.go
- github.com/vdaas/vald/internal/net/grpc/errdetails/*.go
- github.com/vdaas/vald/internal/net/grpc/health/*.go
- github.com/vdaas/vald/internal/net/grpc/interceptor/client/metric/*.go
- github.com/vdaas/vald/internal/net/grpc/interceptor/client/trace/*.go
- github.com/vdaas/vald/internal/net/grpc/interceptor/server/logging/*.go
- github.com/vdaas/vald/internal/net/grpc/interceptor/server/metric/*.go
- github.com/vdaas/vald/internal/net/grpc/interceptor/server/recover/*.go
- github.com/vdaas/vald/internal/net/grpc/interceptor/server/trace/*.go
- github.com/vdaas/vald/internal/net/grpc/keepalive/*.go
- github.com/vdaas/vald/internal/net/grpc/logger/*.go
- github.com/vdaas/vald/internal/net/grpc/pool/*.go
- github.com/vdaas/vald/internal/net/grpc/proto/*.go
- github.com/vdaas/vald/internal/net/grpc/reflection/*.go
- github.com/vdaas/vald/internal/net/grpc/status/*.go
- github.com/vdaas/vald/internal/net/grpc/types/*.go
- github.com/vdaas/vald/internal/net/http/dump/*.go
- github.com/vdaas/vald/internal/net/http/json/*.go
- github.com/vdaas/vald/internal/net/http/metrics/*.go
- github.com/vdaas/vald/internal/net/http/middleware/*.go
- github.com/vdaas/vald/internal/net/http/rest/*.go
- github.com/vdaas/vald/internal/net/http/routing/*.go
- github.com/vdaas/vald/internal/net/quic/*.go
- github.com/vdaas/vald/internal/observability/*.go
- github.com/vdaas/vald/internal/observability/attribute/*.go
- github.com/vdaas/vald/internal/observability/exporter/*.go
- github.com/vdaas/vald/internal/observability/exporter/otlp/*.go
- github.com/vdaas/vald/internal/observability/metrics/*.go
- github.com/vdaas/vald/internal/observability/metrics/backoff/*.go
- github.com/vdaas/vald/internal/observability/metrics/circuitbreaker/*.go
- github.com/vdaas/vald/internal/observability/metrics/grpc/*.go
- github.com/vdaas/vald/internal/observability/metrics/mem/*.go
- github.com/vdaas/vald/internal/observability/metrics/runtime/cgo/*.go
- github.com/vdaas/vald/internal/observability/metrics/runtime/goroutine/*.go
- github.com/vdaas/vald/internal/observability/metrics/version/*.go
- github.com/vdaas/vald/internal/observability/trace/*.go
- github.com/vdaas/vald/internal/os/*.go
- github.com/vdaas/vald/internal/params/*.go
- github.com/vdaas/vald/internal/rand/*.go
- github.com/vdaas/vald/internal/runner/*.go
- github.com/vdaas/vald/internal/safety/*.go
- github.com/vdaas/vald/internal/servers/*.go
- github.com/vdaas/vald/internal/servers/server/*.go
- github.com/vdaas/vald/internal/servers/starter/*.go
- github.com/vdaas/vald/internal/strings/*.go
- github.com/vdaas/vald/internal/sync/*.go
- github.com/vdaas/vald/internal/sync/errgroup/*.go
- github.com/vdaas/vald/internal/sync/semaphore/*.go
- github.com/vdaas/vald/internal/sync/singleflight/*.go
- github.com/vdaas/vald/internal/timeutil/*.go
- github.com/vdaas/vald/internal/timeutil/location/*.go
- github.com/vdaas/vald/internal/tls/*.go
- github.com/vdaas/vald/internal/version/*.go
- github.com/vdaas/vald/pkg/discoverer/k8s/config/*.go
- github.com/vdaas/vald/pkg/discoverer/k8s/handler/grpc/*.go
- github.com/vdaas/vald/pkg/discoverer/k8s/handler/rest/*.go
- github.com/vdaas/vald/pkg/discoverer/k8s/router/*.go
- github.com/vdaas/vald/pkg/discoverer/k8s/service/*.go
- github.com/vdaas/vald/pkg/discoverer/k8s/usecase/*.go
- go.mod
- go.sum
- hack/docker/gen/main.go
- versions/GO_VERSION
jobs:
build:
uses: ./.github/workflows/_docker-image.yaml
with:
target: discoverer-k8s
secrets: inherit