Skip to content

Commit bb9dbbf

Browse files
authored
Use uname -m to detect arch (#164)
1 parent 9ac40db commit bb9dbbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CONTAINER ?= pramsey/$(PROGRAM)
1616
DATE ?= $(shell date +%Y%m%d)
1717
BASE_REGISTRY ?= registry.access.redhat.com
1818
BASE_IMAGE ?= ubi8-micro
19-
SYSTEMARCH = $(shell uname -i)
19+
SYSTEMARCH = $(shell uname -m)
2020

2121
ifeq ($(SYSTEMARCH), x86_64)
2222
TARGETARCH ?= amd64
@@ -54,7 +54,7 @@ docs: ## Generate docs
5454

5555
build: $(PROGRAM) ## Build a local binary using APPVERSION parameter or CI as default
5656

57-
$(PROGRAM): $(GOFILES)
57+
$(PROGRAM): $(GOFILES)
5858
go build -v -ldflags "-s -w -X github.com/CrunchyData/pg_featureserv/conf.setVersion=$(APPVERSION)"
5959

6060
bin-for-docker: $(GOFILES) ## Build a local binary using APPVERSION parameter or CI as default (to be used in docker image)

0 commit comments

Comments
 (0)