-
Notifications
You must be signed in to change notification settings - Fork 59
/
Makefile
36 lines (27 loc) · 1.67 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
DOCKER_IMAGE_TAG ?= latest
# Pass "registry" to automatically push image to the docker hub.
DOCKER_BUILDX_OUTPUT ?= image
##### docker build #####
base-admin-tools:
docker build -f base-admin-tools.Dockerfile -t temporalio/base-admin-tools:$(DOCKER_IMAGE_TAG) .
docker push temporalio/base-admin-tools:$(DOCKER_IMAGE_TAG)
base-builder:
docker build -f base-builder.Dockerfile -t temporalio/base-builder:$(DOCKER_IMAGE_TAG) .
docker push temporalio/base-builder:$(DOCKER_IMAGE_TAG)
base-server:
docker build -f base-server.Dockerfile -t temporalio/base-server:$(DOCKER_IMAGE_TAG) .
docker push temporalio/base-server:$(DOCKER_IMAGE_TAG)
base-ci-builder:
docker build -f base-ci-builder.Dockerfile -t temporalio/base-ci-builder:$(DOCKER_IMAGE_TAG) .
docker push temporalio/base-ci-builder:$(DOCKER_IMAGE_TAG)
##### docker buildx #####
docker-buildx-container:
docker buildx create --name builder-x --driver docker-container --use
base-admin-tools-x:
docker buildx build . -f base-admin-tools.Dockerfile -t temporalio/base-admin-tools:$(DOCKER_IMAGE_TAG) --platform linux/amd64,linux/arm64 --output type=$(DOCKER_BUILDX_OUTPUT)
base-builder-x:
docker buildx build . -f base-builder.Dockerfile -t temporalio/base-builder:$(DOCKER_IMAGE_TAG) --platform linux/amd64,linux/arm64 --output type=$(DOCKER_BUILDX_OUTPUT)
base-server-x:
docker buildx build . -f base-server.Dockerfile -t temporalio/base-server:$(DOCKER_IMAGE_TAG) --platform linux/amd64,linux/arm64 --output type=$(DOCKER_BUILDX_OUTPUT)
base-ci-builder-x:
docker buildx build . -f base-ci-builder.Dockerfile -t temporalio/base-ci-builder:$(DOCKER_IMAGE_TAG) --platform linux/amd64,linux/arm64 --output type=$(DOCKER_BUILDX_OUTPUT)