update-gitea-actions (!2)

Reviewed-on: https://git.avroid.tech/Templates/template-docker-repository/pulls/2
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
Co-committed-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
This commit is contained in:
aleksandr.vodyanov
2024-10-08 13:11:27 +03:00
committed by Aleksandr Vodyanov
parent 176bf2b6c5
commit b1750866e2
2 changed files with 20 additions and 9 deletions

View File

@@ -6,6 +6,12 @@ IMAGE_TAG = 1.0
REVISION =
DOCKER_REGISTRY = harbor.avroid.tech
CI_FLAGS =
ifeq ($(CI), false)
CI_FLAGS = --no-cache
endif
all:
@echo 'DEFAULT:'
@echo ' make build'
@@ -14,15 +20,12 @@ all:
@echo ' make clean'
build:
DOCKER_BUILDKIT=1 docker build \
DOCKER_BUILDKIT=1 docker build $(CI_FLAGS) \
-f Dockerfile \
--platform linux/amd64 \
-t $(DOCKER_REGISTRY)/$(IMAGE_GROUP)/$(IMAGE_NAME):$(IMAGE_TAG)$(REVISION) src/
push:
ifeq ($(CI), false)
docker login https://$(DOCKER_REGISTRY)
endif
docker push $(DOCKER_REGISTRY)/$(IMAGE_GROUP)/$(IMAGE_NAME):$(IMAGE_TAG)$(REVISION)
getTag: