Skip to content

Commit

Permalink
chore: drop integration binary from releases.
Browse files Browse the repository at this point in the history
Drop integration binary from releases.

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Mar 7, 2024
1 parent 29e6414 commit ee24781
Show file tree
Hide file tree
Showing 30 changed files with 43 additions and 43 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-02-28T11:30:58Z by kres latest.
# Generated on 2024-03-07T17:30:39Z by kres latest.

name: default
concurrency:
Expand Down Expand Up @@ -76,6 +76,9 @@ jobs:
- name: unit-tests-race
run: |
make unit-tests-race
- name: integration-test
run: |
make integration-test
- name: omni
run: |
make omni
Expand Down Expand Up @@ -104,9 +107,6 @@ jobs:
PUSH: "true"
run: |
make image-omni TAG=latest
- name: omni-integration-test
run: |
make omni-integration-test
- name: omnictl
run: |
make omnictl
Expand Down
6 changes: 3 additions & 3 deletions .kres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ spec:
disableImage: true
---
kind: auto.CommandConfig
name: omni-integration-test
name: integration-test
spec:
disableImage: true
---
Expand Down Expand Up @@ -144,7 +144,7 @@ spec:
makefile:
enabled: true
depends:
- omni-integration-test-linux-amd64
- integration-test-linux-amd64
- omnictl-linux-amd64
- omni-linux-amd64
script:
Expand Down Expand Up @@ -272,7 +272,7 @@ spec:
GOARCH: amd64
---
kind: golang.Build
name: omni-integration-test
name: integration-test
spec:
outputs:
linux-amd64:
Expand Down
38 changes: 19 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax = docker/dockerfile-upstream:1.6.0-labs
# syntax = docker/dockerfile-upstream:1.7.0-labs

# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-02-26T21:35:48Z by kres latest.
# Generated on 2024-03-07T17:30:39Z by kres latest.

ARG JS_TOOLCHAIN
ARG TOOLCHAIN
Expand Down Expand Up @@ -329,20 +329,20 @@ COPY --from=unit-tests-client-run /src/client/coverage.txt /coverage-unit-tests-
FROM scratch AS unit-tests
COPY --from=unit-tests-run /src/coverage.txt /coverage-unit-tests.txt

# builds omni-darwin-amd64
FROM base AS omni-darwin-amd64-build
# builds integration-test-linux-amd64
FROM base AS integration-test-linux-amd64-build
COPY --from=generate / /
COPY --from=embed-generate / /
WORKDIR /src/cmd/omni
WORKDIR /src/cmd/integration-test
ARG GO_BUILDFLAGS
ARG GO_LDFLAGS
ARG VERSION_PKG="internal/version"
ARG SHA
ARG TAG
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg GOARCH=amd64 GOOS=darwin go build ${GO_BUILDFLAGS} -ldflags "${GO_LDFLAGS} -X ${VERSION_PKG}.Name=omni -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG}" -o /omni-darwin-amd64
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg GOARCH=amd64 GOOS=linux go build ${GO_BUILDFLAGS} -ldflags "${GO_LDFLAGS} -X ${VERSION_PKG}.Name=integration-test -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG}" -o /integration-test-linux-amd64

# builds omni-darwin-arm64
FROM base AS omni-darwin-arm64-build
# builds omni-darwin-amd64
FROM base AS omni-darwin-amd64-build
COPY --from=generate / /
COPY --from=embed-generate / /
WORKDIR /src/cmd/omni
Expand All @@ -351,19 +351,19 @@ ARG GO_LDFLAGS
ARG VERSION_PKG="internal/version"
ARG SHA
ARG TAG
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg GOARCH=arm64 GOOS=darwin go build ${GO_BUILDFLAGS} -ldflags "${GO_LDFLAGS} -X ${VERSION_PKG}.Name=omni -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG}" -o /omni-darwin-arm64
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg GOARCH=amd64 GOOS=darwin go build ${GO_BUILDFLAGS} -ldflags "${GO_LDFLAGS} -X ${VERSION_PKG}.Name=omni -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG}" -o /omni-darwin-amd64

# builds omni-integration-test-linux-amd64
FROM base AS omni-integration-test-linux-amd64-build
# builds omni-darwin-arm64
FROM base AS omni-darwin-arm64-build
COPY --from=generate / /
COPY --from=embed-generate / /
WORKDIR /src/cmd/omni-integration-test
WORKDIR /src/cmd/omni
ARG GO_BUILDFLAGS
ARG GO_LDFLAGS
ARG VERSION_PKG="internal/version"
ARG SHA
ARG TAG
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg GOARCH=amd64 GOOS=linux go build ${GO_BUILDFLAGS} -ldflags "${GO_LDFLAGS} -X ${VERSION_PKG}.Name=omni-integration-test -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG}" -o /omni-integration-test-linux-amd64
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg GOARCH=arm64 GOOS=darwin go build ${GO_BUILDFLAGS} -ldflags "${GO_LDFLAGS} -X ${VERSION_PKG}.Name=omni -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG}" -o /omni-darwin-arm64

# builds omni-linux-amd64
FROM base AS omni-linux-amd64-build
Expand Down Expand Up @@ -449,15 +449,15 @@ ARG SHA
ARG TAG
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg GOARCH=amd64 GOOS=windows go build ${GO_BUILDFLAGS} -ldflags "${GO_LDFLAGS} -X ${VERSION_PKG}.Name=omnictl -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG}" -o /omnictl-windows-amd64.exe

FROM scratch AS integration-test-linux-amd64
COPY --from=integration-test-linux-amd64-build /integration-test-linux-amd64 /integration-test-linux-amd64

FROM scratch AS omni-darwin-amd64
COPY --from=omni-darwin-amd64-build /omni-darwin-amd64 /omni-darwin-amd64

FROM scratch AS omni-darwin-arm64
COPY --from=omni-darwin-arm64-build /omni-darwin-arm64 /omni-darwin-arm64

FROM scratch AS omni-integration-test-linux-amd64
COPY --from=omni-integration-test-linux-amd64-build /omni-integration-test-linux-amd64 /omni-integration-test-linux-amd64

FROM scratch AS omni-linux-amd64
COPY --from=omni-linux-amd64-build /omni-linux-amd64 /omni-linux-amd64

Expand All @@ -479,10 +479,10 @@ COPY --from=omnictl-linux-arm64-build /omnictl-linux-arm64 /omnictl-linux-arm64
FROM scratch AS omnictl-windows-amd64.exe
COPY --from=omnictl-windows-amd64.exe-build /omnictl-windows-amd64.exe /omnictl-windows-amd64.exe

FROM omni-integration-test-linux-${TARGETARCH} AS omni-integration-test
FROM integration-test-linux-${TARGETARCH} AS integration-test

FROM scratch AS omni-integration-test-all
COPY --from=omni-integration-test-linux-amd64 / /
FROM scratch AS integration-test-all
COPY --from=integration-test-linux-amd64 / /

FROM omni-linux-${TARGETARCH} AS omni

Expand Down
32 changes: 16 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-02-26T21:35:48Z by kres latest.
# Generated on 2024-03-07T17:30:39Z by kres latest.

# common variables

Expand All @@ -17,15 +17,15 @@ REGISTRY_AND_USERNAME ?= $(REGISTRY)/$(USERNAME)
PROTOBUF_GRPC_GATEWAY_TS_VERSION ?= 1.2.1
TESTPKGS ?= ./...
NODE_BUILD_ARGS ?=
PROTOBUF_GO_VERSION ?= 1.32.0
PROTOBUF_GO_VERSION ?= 1.33.0
GRPC_GO_VERSION ?= 1.3.0
GRPC_GATEWAY_VERSION ?= 2.19.1
VTPROTOBUF_VERSION ?= 0.6.0
DEEPCOPY_VERSION ?= v0.5.6
GOLANGCILINT_VERSION ?= v1.56.2
GOFUMPT_VERSION ?= v0.6.0
GO_VERSION ?= 1.22.0
GOIMPORTS_VERSION ?= v0.18.0
GO_VERSION ?= 1.22.1
GOIMPORTS_VERSION ?= v0.19.0
GO_BUILDFLAGS ?=
GO_LDFLAGS ?=
CGO_ENABLED ?= 0
Expand Down Expand Up @@ -138,7 +138,7 @@ else
GO_LDFLAGS += -s
endif

all: unit-tests-frontend lint-eslint frontend unit-tests-client unit-tests omni image-omni omni-integration-test omnictl dev-server docker-compose-up docker-compose-down mkcert-install mkcert-generate mkcert-uninstall run-integration-test lint
all: unit-tests-frontend lint-eslint frontend unit-tests-client unit-tests integration-test omni image-omni omnictl dev-server docker-compose-up docker-compose-down mkcert-install mkcert-generate mkcert-uninstall run-integration-test lint

.PHONY: clean
clean: ## Cleans up all artifacts.
Expand Down Expand Up @@ -226,6 +226,16 @@ unit-tests: ## Performs unit tests
unit-tests-race: ## Performs unit tests with race detection enabled.
@$(MAKE) target-$@

.PHONY: $(ARTIFACTS)/integration-test-linux-amd64
$(ARTIFACTS)/integration-test-linux-amd64:
@$(MAKE) local-integration-test-linux-amd64 DEST=$(ARTIFACTS)

.PHONY: integration-test-linux-amd64
integration-test-linux-amd64: $(ARTIFACTS)/integration-test-linux-amd64 ## Builds executable for integration-test-linux-amd64.

.PHONY: integration-test
integration-test: integration-test-linux-amd64 ## Builds executables for integration-test.

.PHONY: $(ARTIFACTS)/omni-darwin-amd64
$(ARTIFACTS)/omni-darwin-amd64:
@$(MAKE) local-omni-darwin-amd64 DEST=$(ARTIFACTS)
Expand Down Expand Up @@ -268,16 +278,6 @@ lint: lint-golangci-lint-client lint-gofumpt-client lint-govulncheck-client lint
image-omni: ## Builds image for omni.
@$(MAKE) target-$@ TARGET_ARGS="--tag=$(REGISTRY)/$(USERNAME)/omni:$(TAG)"

.PHONY: $(ARTIFACTS)/omni-integration-test-linux-amd64
$(ARTIFACTS)/omni-integration-test-linux-amd64:
@$(MAKE) local-omni-integration-test-linux-amd64 DEST=$(ARTIFACTS)

.PHONY: omni-integration-test-linux-amd64
omni-integration-test-linux-amd64: $(ARTIFACTS)/omni-integration-test-linux-amd64 ## Builds executable for omni-integration-test-linux-amd64.

.PHONY: omni-integration-test
omni-integration-test: omni-integration-test-linux-amd64 ## Builds executables for omni-integration-test.

.PHONY: $(ARTIFACTS)/omnictl-darwin-amd64
$(ARTIFACTS)/omnictl-darwin-amd64:
@$(MAKE) local-omnictl-darwin-amd64 DEST=$(ARTIFACTS)
Expand Down Expand Up @@ -340,7 +340,7 @@ mkcert-generate:
mkcert-uninstall:
go run ./hack/generate-certs uninstall

run-integration-test: omni-integration-test-linux-amd64 omnictl-linux-amd64 omni-linux-amd64
run-integration-test: integration-test-linux-amd64 omnictl-linux-amd64 omni-linux-amd64
@hack/test/integration.sh

.PHONY: rekres
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/frontend/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
//
// Generated on 2024-02-28T17:18:34Z by kres latest.
// Generated on 2024-03-07T17:30:39Z by kres latest.

package frontend

Expand Down

0 comments on commit ee24781

Please sign in to comment.