Skip to content

Commit

Permalink
ubi: remove major version (#11977)
Browse files Browse the repository at this point in the history
to help with the Unified Release contract
  • Loading branch information
v1v authored Nov 14, 2023
1 parent 1fbf9dd commit 3d190b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packaging.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ DOCKER_BUILD_ARGS := \
DOCKER_IMAGES := \
build/docker/apm-server-$(APM_SERVER_VERSION).txt \
build/docker/apm-server-$(APM_SERVER_VERSION)-SNAPSHOT.txt \
build/docker/apm-server-ubi9-$(APM_SERVER_VERSION).txt \
build/docker/apm-server-ubi9-$(APM_SERVER_VERSION)-SNAPSHOT.txt
build/docker/apm-server-ubi-$(APM_SERVER_VERSION).txt \
build/docker/apm-server-ubi-$(APM_SERVER_VERSION)-SNAPSHOT.txt

build/docker/%.txt: DOCKER_IMAGE_TAG := docker.elastic.co/apm/apm-server:%
build/docker/%.txt: VERSION := $(APM_SERVER_VERSION)
build/docker/%-SNAPSHOT.txt: VERSION := $(APM_SERVER_VERSION)-SNAPSHOT
build/docker/apm-server-ubi9-%.txt: DOCKER_BUILD_ARGS+=--build-arg BASE_IMAGE=docker.elastic.co/ubi9/ubi-minimal
build/docker/apm-server-ubi-%.txt: DOCKER_BUILD_ARGS+=--build-arg BASE_IMAGE=docker.elastic.co/ubi9/ubi-minimal

.PHONY: $(DOCKER_IMAGES)
$(DOCKER_IMAGES):
Expand All @@ -43,7 +43,7 @@ $(DOCKER_IMAGES):

# Docker image tarballs. We distribute UBI8 Docker images only for AMD64.
DOCKER_IMAGE_SUFFIX := docker-image$(if $(findstring arm64,$(GOARCH)),-arm64).tar.gz
DOCKER_IMAGE_PREFIXES := apm-server $(if $(findstring amd64,$(GOARCH)), apm-server-ubi9)
DOCKER_IMAGE_PREFIXES := apm-server $(if $(findstring amd64,$(GOARCH)), apm-server-ubi)
DOCKER_IMAGE_RELEASE_TARBALLS := $(patsubst %, $(DISTDIR)/%-$(APM_SERVER_VERSION)-$(DOCKER_IMAGE_SUFFIX), $(DOCKER_IMAGE_PREFIXES))
DOCKER_IMAGE_SNAPSHOT_TARBALLS := $(patsubst %, $(DISTDIR)/%-$(APM_SERVER_VERSION)-SNAPSHOT-$(DOCKER_IMAGE_SUFFIX), $(DOCKER_IMAGE_PREFIXES))

Expand Down

0 comments on commit 3d190b4

Please sign in to comment.