[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

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:
Aleksandr Vodyanov
2025-01-20 13:43:29 +03:00
parent 760ba1a44c
commit c782497f4d
4 changed files with 69 additions and 8 deletions

View File

@@ -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: