namillum
Version:
Bubble Protocol SDK
18 lines (14 loc) • 496 B
Plain Text
all: image/build-and-push
.ONESHELL:
SHELL := /bin/bash
.SHELLFLAGS = -ec
ENVIRONMENT ?= dev
VALID_ENVIRONMENTS := dev stg prd
# 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:
bazelisk run --test_output=all --keep_going //products/devex:push_image_${ENVIRONMENT}