namillum
Version:
Bubble Protocol SDK
21 lines (16 loc) • 563 B
Plain Text
all: image/build-and-push
.ONESHELL:
SHELL := /bin/bash
.SHELLFLAGS = -ec
ENVIRONMENT ?= dev
VALID_ENVIRONMENTS := dev stg prd
IMAGE_TAG ?= localhost:5001/multisig:latest
# Check if the ENVIRONMENT variable is in the list of valid environments
ifeq ($(filter $(ENVIRONMENT),$(VALID_ENVIRONMENTS)),)
$(error Invalid value for ENVIRONMENT. Valid values are dev, stg, or prd.)
endif
## Build and push the Docker image
image/build-and-push:
docker build --build-arg REACT_APP_DEPLOY_ENV=${ENVIRONMENT} -t "${IMAGE_TAG}" .
docker push "${IMAGE_TAG}"