Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_ARGS: release --skip=validate --clean -f release/goreleaser.windows.yaml ${{ github.event_name == 'pull_request' && '--snapshot' || '' }}
RELEASE_ARGS: release --verbose --skip=validate --clean -f release/goreleaser.windows.yaml ${{ github.event_name == 'pull_request' && '--snapshot' || '' }}

- run: tar -cvf dist-windows.tar dist
- uses: actions/upload-artifact@v4
Expand All @@ -85,7 +85,7 @@ jobs:
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_ARGS: release --rm-dist -f release/goreleaser.darwin.yaml --skip=validate ${{ github.event_name == 'pull_request' && '--snapshot' || '' }}
RELEASE_ARGS: release --verbose --clean -f release/goreleaser.darwin.yaml --skip=validate ${{ github.event_name == 'pull_request' && '--snapshot' || '' }}

- run: gtar -cvf dist-darwin.tar dist
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_ARGS: release --rm-dist -f release/goreleaser.linux.yaml --skip=validate ${{ github.event_name == 'pull_request' && '--snapshot' || '' }}
RELEASE_ARGS: release --verbose --clean -f release/goreleaser.linux.yaml --skip=validate ${{ github.event_name == 'pull_request' && '--snapshot' || '' }}

- run: tar -cvf dist-linux.tar dist
- uses: actions/upload-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export PKG := github.com/operator-framework/operator-registry
export GIT_COMMIT := $(or $(SOURCE_GIT_COMMIT),$(shell git rev-parse --short HEAD))
export OPM_VERSION := $(or $(SOURCE_GIT_TAG),$(shell git describe --always --tags HEAD))
export BUILD_DATE := $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
export GRPC_HEALTH_PROBE_VERSION := $(shell $(GO) list -m github.com/grpc-ecosystem/grpc-health-probe | awk '{print $$2}')

.DEFAULT_GOAL := all

Expand Down Expand Up @@ -143,7 +144,7 @@ export LATEST_IMAGE_OR_EMPTY := $(shell \
&& [ "$(shell echo -e "$(OPM_VERSION)\n$(LATEST_TAG)" | sort -rV | head -n1)" == "$(OPM_VERSION)" ] \
&& echo "$(OPM_IMAGE_REPO):latest" || echo "")
RELEASE_GOOS := $(shell go env GOOS)
RELEASE_ARGS ?= release --clean --snapshot -f release/goreleaser.$(RELEASE_GOOS).yaml
RELEASE_ARGS ?= release --verbose --clean --snapshot -f release/goreleaser.$(RELEASE_GOOS).yaml

# Note: bingo does not yet support windows (https://github.com/bwplotka/bingo/issues/26)
# so GOOS=windows gets its own way to install goreleaser
Expand Down
4 changes: 4 additions & 0 deletions release/goreleaser.linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ dockers:
use: buildx
build_flag_templates:
- --platform=linux/amd64
- --build-arg=GRPC_HEALTH_PROBE_VERSION={{ .Env.GRPC_HEALTH_PROBE_VERSION }}
- image_templates:
- "{{ .Env.OPM_IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-arm64"
ids: ["linux-arm64"]
Expand All @@ -97,6 +98,7 @@ dockers:
use: buildx
build_flag_templates:
- --platform=linux/arm64
- --build-arg=GRPC_HEALTH_PROBE_VERSION={{ .Env.GRPC_HEALTH_PROBE_VERSION }}
- image_templates:
- "{{ .Env.OPM_IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-ppc64le"
ids: ["linux-ppc64le"]
Expand All @@ -107,6 +109,7 @@ dockers:
use: buildx
build_flag_templates:
- --platform=linux/ppc64le
- --build-arg=GRPC_HEALTH_PROBE_VERSION={{ .Env.GRPC_HEALTH_PROBE_VERSION }}
- image_templates:
- "{{ .Env.OPM_IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-s390x"
ids: ["linux-s390x"]
Expand All @@ -117,6 +120,7 @@ dockers:
use: buildx
build_flag_templates:
- --platform=linux/s390x
- --build-arg=GRPC_HEALTH_PROBE_VERSION={{ .Env.GRPC_HEALTH_PROBE_VERSION }}
docker_manifests:
# IMAGE_TAG is either set by the Makefile or the goreleaser action workflow,
# This image is intended to be tagged/pushed on all trunk (master, release branch) commits and tags.
Expand Down
7 changes: 6 additions & 1 deletion release/goreleaser.opm.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# NOTE: This Dockerfile is used in conjuction with GoReleaser to
# build opm images. See the configurations in .goreleaser.yaml
# and .github/workflows/release.yaml.
#
# The GRPC_HEALTH_PROBE_VERSION is automatically passed as a build arg
# by GoReleaser from the GRPC_HEALTH_PROBE_VERSION environment variable,
# which is set in the Makefile from go.mod.

FROM ghcr.io/grpc-ecosystem/grpc-health-probe:v0.4.37 AS grpc_health_probe
ARG GRPC_HEALTH_PROBE_VERSION
FROM ghcr.io/grpc-ecosystem/grpc-health-probe:${GRPC_HEALTH_PROBE_VERSION} AS grpc_health_probe
FROM gcr.io/distroless/static:debug
COPY --from=grpc_health_probe /ko-app/grpc-health-probe /bin/grpc_health_probe
COPY ["nsswitch.conf", "/etc/nsswitch.conf"]
Expand Down