[DO-1495] add cmake-format (!2)
Some checks failed
Build and publish docker image / Builds the image and publishes to docker hub (push) Has been cancelled
Some checks failed
Build and publish docker image / Builds the image and publishes to docker hub (push) Has been cancelled
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Docker/clang-format/pulls/2
This commit is contained in:
13
Makefile
13
Makefile
@@ -3,10 +3,16 @@
|
||||
IMAGE_NAME = clang-format
|
||||
IMAGE_GROUP = devops
|
||||
APP_VERSION = 14
|
||||
REVISION = -node20
|
||||
REVISION = -node20-1
|
||||
IMAGE_TAG = $(APP_VERSION)$(REVISION)
|
||||
DOCKER_REGISTRY = harbor.avroid.tech
|
||||
|
||||
CI_FLAGS =
|
||||
|
||||
ifeq ($(CI), false)
|
||||
CI_FLAGS = --no-cache
|
||||
endif
|
||||
|
||||
all:
|
||||
@echo 'DEFAULT:'
|
||||
@echo ' make build'
|
||||
@@ -16,16 +22,13 @@ all:
|
||||
|
||||
build:
|
||||
DOCKER_BUILDKIT=1 docker build \
|
||||
--no-cache \
|
||||
--pull \
|
||||
--network=host \
|
||||
--platform linux/amd64 \
|
||||
-t $(DOCKER_REGISTRY)/$(IMAGE_GROUP)/$(IMAGE_NAME):$(IMAGE_TAG) \
|
||||
--build-arg CLANG_TOOLS_VERSION=$(APP_VERSION) .
|
||||
|
||||
push:
|
||||
ifeq ($(CI), false)
|
||||
docker login https://$(DOCKER_REGISTRY)
|
||||
endif
|
||||
docker push $(DOCKER_REGISTRY)/$(IMAGE_GROUP)/$(IMAGE_NAME):$(IMAGE_TAG)
|
||||
|
||||
getTag:
|
||||
|
||||
Reference in New Issue
Block a user