2020-10-15 12:19:41 +00:00
|
|
|
SHELL := bash
|
|
|
|
|
|
|
|
IMAGE_TAG := dist_base_$(shell date --utc +"%Y%m%d%H%M%S")
|
|
|
|
IMAGE_NAME := statusteam/nimbus_beacon_node:$(IMAGE_TAG)
|
|
|
|
|
2021-01-07 09:19:29 +00:00
|
|
|
.PHONY: \
|
|
|
|
build-amd64 \
|
|
|
|
build-arm64 \
|
|
|
|
build-arm \
|
2021-02-02 22:31:01 +00:00
|
|
|
build-win64 \
|
2021-05-19 06:38:13 +00:00
|
|
|
build-macos \
|
2021-01-07 09:19:29 +00:00
|
|
|
push-amd64 \
|
|
|
|
push-arm64 \
|
2021-02-02 22:31:01 +00:00
|
|
|
push-arm \
|
2021-05-19 06:38:13 +00:00
|
|
|
push-win64 \
|
|
|
|
push-macos
|
2020-10-15 12:19:41 +00:00
|
|
|
|
2021-01-07 09:19:29 +00:00
|
|
|
build-amd64:
|
|
|
|
$(CURDIR)/make_base_image.sh amd64 "$(IMAGE_NAME)"
|
2020-10-15 12:19:41 +00:00
|
|
|
|
2021-01-07 09:19:29 +00:00
|
|
|
build-arm64:
|
2021-10-03 14:41:35 +00:00
|
|
|
$(CURDIR)/make_base_image.sh arm64 "$(IMAGE_NAME)_arm64_v4"
|
2021-01-07 09:19:29 +00:00
|
|
|
|
|
|
|
build-arm:
|
2021-03-10 02:59:19 +00:00
|
|
|
$(CURDIR)/make_base_image.sh arm "$(IMAGE_NAME)_arm_v2"
|
2021-01-07 09:19:29 +00:00
|
|
|
|
2021-02-02 22:31:01 +00:00
|
|
|
build-win64:
|
2022-03-28 08:03:11 +00:00
|
|
|
$(CURDIR)/make_base_image.sh win64 "$(IMAGE_NAME)_win64_v2"
|
2021-02-02 22:31:01 +00:00
|
|
|
|
2021-05-19 06:38:13 +00:00
|
|
|
build-macos:
|
|
|
|
$(CURDIR)/make_base_image.sh macos "$(IMAGE_NAME)_macos"
|
|
|
|
|
2021-01-07 09:19:29 +00:00
|
|
|
# You probably don't want to recreate and push these base images to Docker Hub,
|
|
|
|
# because when older images expire and get deleted, it will no longer be possible
|
|
|
|
# to reproduce old releases.
|
2022-03-28 08:03:11 +00:00
|
|
|
#
|
|
|
|
# When you really have to, change the Docker tags by appending "_v2", "_v3", etc. to them.
|
|
|
|
# This way you won't overwrite the old image.
|
2021-01-07 09:19:29 +00:00
|
|
|
|
|
|
|
#push-amd64: build-amd64
|
|
|
|
# docker push $(IMAGE_NAME)
|
|
|
|
|
|
|
|
#push-arm64: build-arm64
|
2021-10-03 14:41:35 +00:00
|
|
|
# docker push $(IMAGE_NAME)_arm64_v4
|
2021-01-07 09:19:29 +00:00
|
|
|
|
|
|
|
#push-arm: build-arm
|
2021-03-10 02:59:19 +00:00
|
|
|
# docker push $(IMAGE_NAME)_arm_v2
|
2020-10-15 12:19:41 +00:00
|
|
|
|
2021-02-02 22:31:01 +00:00
|
|
|
#push-win64: build-win64
|
2022-03-28 08:03:11 +00:00
|
|
|
# docker push $(IMAGE_NAME)_win64_v2
|
2021-02-02 22:31:01 +00:00
|
|
|
|
2021-05-19 06:38:13 +00:00
|
|
|
#push-macos: build-macos
|
|
|
|
#docker push $(IMAGE_NAME)_macos
|
|
|
|
|