Skip to content

Commit

Permalink
Merge pull request nirmata#135 from JimBugwadia/add_multi_arch
Browse files Browse the repository at this point in the history
add platforms
  • Loading branch information
JimBugwadia authored Jan 23, 2024
2 parents 6f9f490 + dff531b commit ef4ad23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ build:
docker-build:
@echo Build kyverno-notation-aws image with docker... >&2
GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0 LD_FLAGS=$(LD_FLAGS) go build -o kyverno-notation-aws .
docker buildx build --platform linux/arm64/v8 -t $(REPO_IMAGE):$(IMAGE_TAG_LATEST) --load .
docker buildx build --platform linux/amd64,linux/arm64/v8 -t $(REPO_IMAGE):$(IMAGE_TAG_LATEST) --load .

docker-publish:
@echo Build kyverno-notation-aws image with docker... >&2
GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0 LD_FLAGS=$(LD_FLAGS) go build -o kyverno-notation-aws .
docker buildx build --platform linux/arm64/v8 -t $(REPO_IMAGE):$(IMAGE_TAG_LATEST) --load .
docker buildx build --platform linux/amd64,linux/arm64/v8 -t $(REPO_IMAGE):$(IMAGE_TAG_LATEST) --load .
docker tag $(REPO_IMAGE):$(IMAGE_TAG_LATEST) $(REPO_IMAGE):$(IMAGE_TAG_SHA)
docker push $(REPO_IMAGE):$(IMAGE_TAG_SHA)
docker push $(REPO_IMAGE):$(IMAGE_TAG_LATEST)
Expand Down

0 comments on commit ef4ad23

Please sign in to comment.