mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-22 01:17:16 +00:00
* chore: Migrate CI to GitHub actions * Do not install golangci-lint, we use the action * Integrate codecov.io upload * Use some better names for analyze job & steps * go mod tidy * Update tools * Disable CircleCI completely * Satisfy CircleCI with a dummy step until it's disabled
23 lines
676 B
Bash
Executable file
23 lines
676 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -x
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
PROJECT_ROOT=$(cd $(dirname "$0")/.. ; pwd)
|
|
CODEGEN_PKG=${PROJECT_ROOT}/vendor/k8s.io/kube-openapi
|
|
VERSION="v1alpha1"
|
|
|
|
export GO111MODULE=off
|
|
go build -o dist/openapi-gen ${CODEGEN_PKG}/cmd/openapi-gen
|
|
|
|
./dist/openapi-gen \
|
|
--go-header-file ${PROJECT_ROOT}/hack/custom-boilerplate.go.txt \
|
|
--input-dirs github.com/argoproj/argo-cd/pkg/apis/application/${VERSION} \
|
|
--output-package github.com/argoproj/argo-cd/pkg/apis/application/${VERSION} \
|
|
--report-filename pkg/apis/api-rules/violation_exceptions.list \
|
|
$@
|
|
|
|
go build -o ./dist/gen-crd-spec ${PROJECT_ROOT}/hack/gen-crd-spec
|
|
./dist/gen-crd-spec
|