Skip to content

Commit

Permalink
add BUILD_ARCHITECTURE build arg, default linux/amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-willm committed Jan 10, 2025
1 parent d117196 commit 721e5ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ LABKEY_VERSION ?= 21.5-SNAPSHOT
LABKEY_DISTRIBUTION ?= community
LABKEY_EK ?= 123abc456

BUILD_ARCHITECTURE ?= linux/amd64

# repo/image:tags must be lowercase
BUILD_VERSION ?= $(shell echo '$(LABKEY_VERSION)' | tr A-Z a-z)
BUILD_DISTRIBUTION := $(shell echo '$(LABKEY_DISTRIBUTION)' | tr A-Z a-z)
BUILD_ARCHITECTURE ?= $(BUILD_ARCHITECTURE)

BUILD_REPO_URI ?= $(AWS_ACCOUNT_ID).dkr.ecr.$(AWS_REGION).amazonaws.com
BUILD_REPO_NAME := labkey/$(BUILD_DISTRIBUTION)
Expand Down Expand Up @@ -57,6 +60,7 @@ build:
docker build \
--rm \
--compress \
--platform $(BUILD_ARCHITECTURE) \
$(CACHE_FLAG) \
-t $(BUILD_REPO_NAME):latest \
-t $(BUILD_LOCAL_TAG) \
Expand Down

0 comments on commit 721e5ac

Please sign in to comment.