Skip to content

Commit

Permalink
refactor merge docker and github actions workflow gen logic
Browse files Browse the repository at this point in the history
Signed-off-by: kpango <[email protected]>
  • Loading branch information
kpango committed Dec 8, 2024
1 parent 6633cc9 commit f6a1afa
Show file tree
Hide file tree
Showing 121 changed files with 5,010 additions and 6,221 deletions.
5 changes: 0 additions & 5 deletions .gitfiles
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
.github/workflows/dockers-index-correction-image.yaml
.github/workflows/dockers-index-creation-image.yaml
.github/workflows/dockers-index-deletion-image.yaml
.github/workflows/dockers-index-deletion.yaml
.github/workflows/dockers-index-operator-image.yaml
.github/workflows/dockers-index-save-image.yaml
.github/workflows/dockers-loadtest-image.yaml
Expand Down Expand Up @@ -635,8 +634,6 @@ example/manifest/scylla/job.yaml
go.mod
go.sum
hack/CHANGELOG.template.md
hack/actions/gen/main.go
hack/actions/gen/main_test.go
hack/benchmark/assets/checksum/fashion-mnist-784-euclidean.md5
hack/benchmark/assets/checksum/gist-960-euclidean.md5
hack/benchmark/assets/checksum/glove-100-angular.md5
Expand Down Expand Up @@ -1463,8 +1460,6 @@ k8s/index/job/correction/configmap.yaml
k8s/index/job/correction/cronjob.yaml
k8s/index/job/creation/configmap.yaml
k8s/index/job/creation/cronjob.yaml
k8s/index/job/deletion/configmap.yaml
k8s/index/job/deletion/cronjob.yaml
k8s/index/job/save/configmap.yaml
k8s/index/job/save/cronjob.yaml
k8s/index/operator/configmap.yaml
Expand Down
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ assignees: ""

<!--- Please change the versions below along with your environment -->

- Vald Version: v1.7.14
- Go Version: v1.23.3
- Rust Version: v1.82.0
- Vald Version: v1.7.15
- Go Version: v1.23.4
- Rust Version: v1.83.0
- Docker Version: v27.3.1
- Kubernetes Version: v1.31.2
- Helm Version: v3.16.2
- Kubernetes Version: v1.31.3
- Helm Version: v3.16.3
- NGT Version: v2.3.4
- Faiss Version: v1.9.0
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/security_issue_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ assignees: ""

<!--- Please change the versions below along with your environment -->

- Vald Version: v1.7.14
- Go Version: v1.23.3
- Rust Version: v1.82.0
- Vald Version: v1.7.15
- Go Version: v1.23.4
- Rust Version: v1.83.0
- Docker Version: v27.3.1
- Kubernetes Version: v1.31.2
- Helm Version: v3.16.2
- Kubernetes Version: v1.31.3
- Helm Version: v3.16.3
- NGT Version: v2.3.4
- Faiss Version: v1.9.0
10 changes: 5 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
### Versions

<!--- Please change the versions below along with your environment -->
- Vald Version: v1.7.14
- Go Version: v1.23.3
- Rust Version: v1.82.0
- Vald Version: v1.7.15
- Go Version: v1.23.4
- Rust Version: v1.83.0
- Docker Version: v27.3.1
- Kubernetes Version: v1.31.2
- Helm Version: v3.16.2
- Kubernetes Version: v1.31.3
- Helm Version: v3.16.3
- NGT Version: v2.3.4
- Faiss Version: v1.9.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: |
make coverage
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.out
Expand Down
60 changes: 30 additions & 30 deletions .github/workflows/dockers-agent-faiss-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go
# 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: agent-faiss"
on:
Expand All @@ -25,57 +25,57 @@ on:
- "!release/v*.*.*"
tags:
- "*.*.*"
- v*.*.*
- "*.*.*-*"
- v*.*.*
- v*.*.*-*
pull_request:
paths:
- hack/docker/gen/main.go
- dockers/agent/core/faiss/Dockerfile
- hack/actions/gen/main.go
- .github/workflows/dockers-agent-faiss-image.yaml
- "!internal/**/*_mock.go"
- "!internal/**/*_test.go"
- "!internal/db/**"
- "!internal/k8s/**"
- .github/actions/docker-build/action.yaml
- .github/workflows/_docker-image.yaml
- cmd/agent/core/faiss/**
- pkg/agent/core/faiss/**
- pkg/agent/internal/**
- .github/workflows/dockers-agent-faiss-image.yaml
- Makefile
- Makefile.d/**
- apis/grpc/**
- apis/proto/**
- cmd/agent/core/faiss/**
- dockers/agent/core/faiss/Dockerfile
- go.mod
- go.sum
- versions/GO_VERSION
- hack/actions/gen/main.go
- hack/docker/gen/main.go
- internal/**
- "!internal/**/*_test.go"
- "!internal/**/*_mock.go"
- "!internal/db/**"
- "!internal/k8s/**"
- pkg/agent/core/faiss/**
- pkg/agent/internal/**
- versions/FAISS_VERSION
- Makefile
- Makefile.d/**
- versions/GO_VERSION
pull_request_target:
paths:
- hack/docker/gen/main.go
- dockers/agent/core/faiss/Dockerfile
- hack/actions/gen/main.go
- .github/workflows/dockers-agent-faiss-image.yaml
- "!internal/**/*_mock.go"
- "!internal/**/*_test.go"
- "!internal/db/**"
- "!internal/k8s/**"
- .github/actions/docker-build/action.yaml
- .github/workflows/_docker-image.yaml
- cmd/agent/core/faiss/**
- pkg/agent/core/faiss/**
- pkg/agent/internal/**
- .github/workflows/dockers-agent-faiss-image.yaml
- Makefile
- Makefile.d/**
- apis/grpc/**
- apis/proto/**
- cmd/agent/core/faiss/**
- dockers/agent/core/faiss/Dockerfile
- go.mod
- go.sum
- versions/GO_VERSION
- hack/actions/gen/main.go
- hack/docker/gen/main.go
- internal/**
- "!internal/**/*_test.go"
- "!internal/**/*_mock.go"
- "!internal/db/**"
- "!internal/k8s/**"
- pkg/agent/core/faiss/**
- pkg/agent/internal/**
- versions/FAISS_VERSION
- Makefile
- Makefile.d/**
- versions/GO_VERSION
jobs:
build:
uses: ./.github/workflows/_docker-image.yaml
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/dockers-agent-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go
# 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: agent"
on:
Expand All @@ -25,59 +25,59 @@ on:
- "!release/v*.*.*"
tags:
- "*.*.*"
- v*.*.*
- "*.*.*-*"
- v*.*.*
- v*.*.*-*
pull_request:
paths:
- hack/docker/gen/main.go
- dockers/agent/core/agent/Dockerfile
- hack/actions/gen/main.go
- .github/workflows/dockers-agent-image.yaml
- .github/actions/docker-build/action.yaml
- .github/workflows/_docker-image.yaml
- cmd/agent/core/agent/**
- pkg/agent/core/agent/**
- .github/workflows/dockers-agent-image.yaml
- Makefile
- Makefile.d/**
- apis/grpc/**
- apis/proto/**
- cmd/agent/core/agent/**
- dockers/agent/core/agent/Dockerfile
- hack/actions/gen/main.go
- hack/docker/gen/main.go
- pkg/agent/core/agent/**
- rust/Cargo.lock
- rust/Cargo.toml
- rust/bin/agent
- rust/libs/ngt-rs/**
- rust/libs/ngt/**
- rust/libs/proto/**
- versions/RUST_VERSION
- versions/FAISS_VERSION
- versions/NGT_VERSION
- versions/FAISS_VERSION
- versions/NGT_VERSION
- Makefile
- Makefile.d/**
- versions/NGT_VERSION
- versions/RUST_VERSION
pull_request_target:
paths:
- hack/docker/gen/main.go
- dockers/agent/core/agent/Dockerfile
- hack/actions/gen/main.go
- .github/workflows/dockers-agent-image.yaml
- .github/actions/docker-build/action.yaml
- .github/workflows/_docker-image.yaml
- cmd/agent/core/agent/**
- pkg/agent/core/agent/**
- .github/workflows/dockers-agent-image.yaml
- Makefile
- Makefile.d/**
- apis/grpc/**
- apis/proto/**
- cmd/agent/core/agent/**
- dockers/agent/core/agent/Dockerfile
- hack/actions/gen/main.go
- hack/docker/gen/main.go
- pkg/agent/core/agent/**
- rust/Cargo.lock
- rust/Cargo.toml
- rust/bin/agent
- rust/libs/ngt-rs/**
- rust/libs/ngt/**
- rust/libs/proto/**
- versions/RUST_VERSION
- versions/FAISS_VERSION
- versions/NGT_VERSION
- versions/FAISS_VERSION
- versions/NGT_VERSION
- Makefile
- Makefile.d/**
- versions/NGT_VERSION
- versions/RUST_VERSION
jobs:
build:
uses: ./.github/workflows/_docker-image.yaml
Expand Down
56 changes: 28 additions & 28 deletions .github/workflows/dockers-agent-ngt-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go
# 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: agent-ngt"
on:
Expand All @@ -25,55 +25,55 @@ on:
- "!release/v*.*.*"
tags:
- "*.*.*"
- v*.*.*
- "*.*.*-*"
- v*.*.*
- v*.*.*-*
pull_request:
paths:
- hack/docker/gen/main.go
- dockers/agent/core/ngt/Dockerfile
- hack/actions/gen/main.go
- .github/workflows/dockers-agent-ngt-image.yaml
- "!internal/**/*_mock.go"
- "!internal/**/*_test.go"
- "!internal/db/**"
- .github/actions/docker-build/action.yaml
- .github/workflows/_docker-image.yaml
- cmd/agent/core/ngt/**
- pkg/agent/core/ngt/**
- pkg/agent/internal/**
- .github/workflows/dockers-agent-ngt-image.yaml
- Makefile
- Makefile.d/**
- apis/grpc/**
- apis/proto/**
- cmd/agent/core/ngt/**
- dockers/agent/core/ngt/Dockerfile
- go.mod
- go.sum
- versions/GO_VERSION
- hack/actions/gen/main.go
- hack/docker/gen/main.go
- internal/**
- "!internal/**/*_test.go"
- "!internal/**/*_mock.go"
- "!internal/db/**"
- pkg/agent/core/ngt/**
- pkg/agent/internal/**
- versions/GO_VERSION
- versions/NGT_VERSION
- Makefile
- Makefile.d/**
pull_request_target:
paths:
- hack/docker/gen/main.go
- dockers/agent/core/ngt/Dockerfile
- hack/actions/gen/main.go
- .github/workflows/dockers-agent-ngt-image.yaml
- "!internal/**/*_mock.go"
- "!internal/**/*_test.go"
- "!internal/db/**"
- .github/actions/docker-build/action.yaml
- .github/workflows/_docker-image.yaml
- cmd/agent/core/ngt/**
- pkg/agent/core/ngt/**
- pkg/agent/internal/**
- .github/workflows/dockers-agent-ngt-image.yaml
- Makefile
- Makefile.d/**
- apis/grpc/**
- apis/proto/**
- cmd/agent/core/ngt/**
- dockers/agent/core/ngt/Dockerfile
- go.mod
- go.sum
- versions/GO_VERSION
- hack/actions/gen/main.go
- hack/docker/gen/main.go
- internal/**
- "!internal/**/*_test.go"
- "!internal/**/*_mock.go"
- "!internal/db/**"
- pkg/agent/core/ngt/**
- pkg/agent/internal/**
- versions/GO_VERSION
- versions/NGT_VERSION
- Makefile
- Makefile.d/**
jobs:
build:
uses: ./.github/workflows/_docker-image.yaml
Expand Down
Loading

0 comments on commit f6a1afa

Please sign in to comment.