Skip to content

Commit

Permalink
adds docker manifest for multiple architectures
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Griffin <[email protected]>
  • Loading branch information
m00sey committed Jul 30, 2024
1 parent ce3c235 commit 98671ad
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@

.PHONY: build-keri

VERSION := docker-test

build-keri:
@docker buildx build --platform=linux/amd64 -f images/keripy.dockerfile --tag weboftrust/keri:1.2.0-dev11 .
@docker buildx build --platform=linux/arm64 -f images/keripy.dockerfile --tag weboftrust/keri:1.2.0-dev11-arm64 .
@docker buildx build --platform -f images/keripy.dockerfile linux/amd64,linux/arm64 -t weboftrust/keri:$(VERSION) .
@docker manifest create weboftrust/keri:$(VERSION) --amend weboftrust/keri:amd64 --amend weboftrust/keri:arm64

.PHONY: build-witness-demo
build-witness-demo:
@@docker buildx build --platform=linux/amd64 -f images/witness.demo.dockerfile --tag weboftrust/keri-witness-demo:1.1.10 .
@@docker buildx build --platform=linux/arm64 -f images/witness.demo.dockerfile --tag weboftrust/keri-witness-demo:1.1.10-arm64 .
@docker buildx build --platform linux/amd64,linux/arm64 -f images/witness.demo.dockerfile -t weboftrust/keri-witness-demo:$(VERSION) .
@docker manifest create weboftrust/keri-witness-demo:$(VERSION) --amend weboftrust/keri-witness-demo:amd64 --amend weboftrust/keri-witness-demo:arm64

.PHONY: publish-keri
publish-keri:
@docker push weboftrust/keri:1.2.0-dev11
@docker push weboftrust/keri:1.2.0-dev11-arm64
@docker push weboftrust/keri:$(VERSION)
@docker manifest push weboftrust/keri:$(VERSION)

.PHONY: publish-keri-witness-demo
publish-keri-witness-demo:
@docker push weboftrust/keri-witness-demo --all-tags
@docker push weboftrust/keri-witness-demo:$(VERSION)
@docker manifest push weboftrust/keri-witness-demo:$(VERSION)

0 comments on commit 98671ad

Please sign in to comment.