diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..963898e1 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +### Git ### +.git* + +### GitHub Actions ### +/.github/ + +# Dependency directories +.local +/bin/ +/config/ \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index e10a057e..bd5b2f4d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,13 +1,29 @@ # .goreleaser.yml -# Build customization +before: + hooks: + - go mod download + - go generate ./... builds: - - binary: imc - main: ./cmd/manager/main.go - env: + - env: - CGO_ENABLED=0 goos: + - linux - windows - darwin - - linux -env_files: - github_token: /home/jenkins/.apitoken/hub +archives: + - replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' diff --git a/_config.yml b/_config.yml deleted file mode 100644 index c7418817..00000000 --- a/_config.yml +++ /dev/null @@ -1 +0,0 @@ -theme: jekyll-theme-slate \ No newline at end of file diff --git a/bundle.Dockerfile b/bundle.Dockerfile new file mode 100644 index 00000000..b9070cf3 --- /dev/null +++ b/bundle.Dockerfile @@ -0,0 +1,15 @@ +FROM scratch + +LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1 +LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/ +LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/ +LABEL operators.operatorframework.io.bundle.package.v1=slack-operator +LABEL operators.operatorframework.io.bundle.channels.v1=alpha +LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.2.0 +LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1 +LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v2 +LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/ +LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1 +COPY bundle/manifests /manifests/ +COPY bundle/metadata /metadata/ +COPY bundle/tests/scorecard /tests/scorecard/ diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt new file mode 100644 index 00000000..45dbbbbc --- /dev/null +++ b/hack/boilerplate.go.txt @@ -0,0 +1,15 @@ +/* +Copyright 2021. + +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 + + http://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. +*/ \ No newline at end of file