Skip to content

Commit

Permalink
feat: Support IMAGE_TAG build variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jacwil committed May 19, 2024
1 parent 1ff51fc commit c9f410e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
rand := $(shell openssl rand -hex 6)

export IMAGE_TAG := $(if $(IMAGE_TAG),$(IMAGE_TAG),latest)

.PHONY: docker-dev-build
docker-dev-build:
docker build -f ./Dockerfile-dev -t oryd/kratos-selfservice-ui-node:latest .
docker build -f ./Dockerfile-dev -t oryd/kratos-selfservice-ui-node:${IMAGE_TAG} .

.PHONY: docker
docker:
docker build -t oryd/kratos-selfservice-ui-node:latest .
docker build -t oryd/kratos-selfservice-ui-node:${IMAGE_TAG} .

.PHONY: build-sdk
build-sdk:
Expand Down Expand Up @@ -34,7 +36,7 @@ publish-sdk: build-sdk

.PHONY: build-sdk-docker
build-sdk-docker: build-sdk
docker build -t oryd/kratos-selfservice-ui-node:latest . --build-arg LINK=true
docker build -t oryd/kratos-selfservice-ui-node:${IMAGE_TAG} . --build-arg LINK=true

.PHONY: clean-sdk
clean-sdk:
Expand Down

0 comments on commit c9f410e

Please sign in to comment.