-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into vsukhin/feature/webho…
…ok-payload-object-field
- Loading branch information
Showing
6 changed files
with
104 additions
and
110 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
project_name: testkube-operator | ||
builds: | ||
- id: "linux" | ||
env: [CGO_ENABLED=0] | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
dockers: | ||
- dockerfile: Dockerfile | ||
use: buildx | ||
goos: linux | ||
goarch: amd64 | ||
image_templates: | ||
- "kubeshop/testkube-operator:{{ .ShortCommit }}" | ||
build_flag_templates: | ||
- "--platform=linux/amd64" | ||
- "--label=org.opencontainers.image.title={{ .ProjectName }}" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
project_name: testkube-operator | ||
builds: | ||
- id: "linux" | ||
env: [CGO_ENABLED=0] | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
dockers: | ||
- dockerfile: Dockerfile | ||
use: buildx | ||
goos: linux | ||
goarch: amd64 | ||
image_templates: | ||
- "kubeshop/testkube-operator:{{ .ShortCommit }}-amd64" | ||
- "kubeshop/testkube-operator:{{ .Version }}-amd64" | ||
- "kubeshop/testkube-operator:latest-amd64" | ||
build_flag_templates: | ||
- "--platform=linux/amd64" | ||
- "--label=org.opencontainers.image.title={{ .ProjectName }}" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
|
||
- dockerfile: Dockerfile | ||
use: buildx | ||
goos: linux | ||
goarch: arm64 | ||
image_templates: | ||
- "kubeshop/testkube-operator:{{ .ShortCommit }}-arm64v8" | ||
- "kubeshop/testkube-operator:{{ .Version }}-arm64v8" | ||
- "kubeshop/testkube-operator:latest-arm64v8" | ||
build_flag_templates: | ||
- "--platform=linux/arm64/v8" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.title={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
|
||
docker_manifests: | ||
- name_template: kubeshop/testkube-operator:{{ .ShortCommit }} | ||
image_templates: | ||
- kubeshop/testkube-operator:{{ .ShortCommit }}-amd64 | ||
- kubeshop/testkube-operator:{{ .ShortCommit }}-arm64v8 | ||
- name_template: kubeshop/testkube-operator:{{ .Version }} | ||
image_templates: | ||
- kubeshop/testkube-operator:{{ .Version }}-amd64 | ||
- kubeshop/testkube-operator:{{ .Version }}-arm64v8 | ||
- name_template: kubeshop/testkube-operator:latest | ||
image_templates: | ||
- kubeshop/testkube-operator:latest-amd64 | ||
- kubeshop/testkube-operator:latest-arm64v8 | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,3 @@ | ||
# Build the manager binary | ||
FROM --platform=$BUILDPLATFORM golang:1.18 as builder | ||
|
||
ENV CGO_ENABLED=0 | ||
ENV GOOS=linux | ||
|
||
WORKDIR /workspace | ||
# Copy the Go Modules manifests | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
# cache deps before building and copying source so that we don't need to re-download as much | ||
# and so that source changes don't invalidate our downloaded layer | ||
RUN go mod download | ||
|
||
# Copy the go source | ||
COPY main.go main.go | ||
COPY apis/ apis/ | ||
COPY controllers/ controllers/ | ||
COPY pkg/ pkg/ | ||
COPY utils/ utils/ | ||
|
||
ARG TARGETOS TARGETARCH | ||
# Build | ||
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -a -o manager main.go | ||
|
||
# Use distroless as minimal base image to package the manager binary | ||
# Refer to https://github.com/GoogleContainerTools/distroless for more details | ||
FROM gcr.io/distroless/static:nonroot | ||
WORKDIR / | ||
COPY --from=builder /workspace/manager . | ||
USER 65532:65532 | ||
|
||
FROM alpine | ||
COPY testkube-operator /manager | ||
ENTRYPOINT ["/manager"] |
This file was deleted.
Oops, something went wrong.