|
1 | 1 | # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. |
2 | 2 | # |
3 | | -# Generated on 2026-04-17T12:07:32Z by kres ae3e740. |
| 3 | +# Generated on 2026-04-17T13:38:16Z by kres ae3e740-dirty. |
4 | 4 |
|
5 | 5 | # common variables |
6 | 6 |
|
7 | 7 | SHA := $(shell git describe --match=none --always --abbrev=8 --dirty) |
8 | | -TAG := $(shell git describe --tag --always --dirty --match v[0-9]\*) |
| 8 | +TAG ?= $(shell git describe --tag --always --dirty --match v[0-9]\*) |
9 | 9 | TAG_SUFFIX ?= |
10 | | -ABBREV_TAG := $(shell git describe --tags >/dev/null 2>/dev/null && git describe --tag --always --match v[0-9]\* --abbrev=0 || echo 'undefined') |
| 10 | +ABBREV_TAG ?= $(shell git describe --tags >/dev/null 2>/dev/null && git describe --tag --always --match v[0-9]\* --abbrev=0 || echo 'undefined') |
11 | 11 | BRANCH := $(shell git rev-parse --abbrev-ref HEAD) |
12 | 12 | ARTIFACTS := _out |
13 | 13 | IMAGE_TAG ?= $(TAG)$(TAG_SUFFIX) |
14 | 14 | OPERATING_SYSTEM := $(shell uname -s | tr '[:upper:]' '[:lower:]') |
15 | 15 | GOARCH := $(shell uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/') |
| 16 | +CI_RELEASE_TAG := $(shell git log --oneline --format=%B -n 1 HEAD^2 -- 2>/dev/null | head -n 1 | sed -r "/^release\(.*\)/ s/^release\((.*)\):.*$$/\\1/; t; Q") |
16 | 17 | WITH_DEBUG ?= false |
17 | 18 | WITH_RACE ?= false |
18 | 19 | REGISTRY ?= ghcr.io |
@@ -180,6 +181,14 @@ $(ARTIFACTS): ## Creates artifacts directory. |
180 | 181 | clean: ## Cleans up all artifacts. |
181 | 182 | @rm -rf $(ARTIFACTS) |
182 | 183 |
|
| 184 | +.PHONY: ci-temp-release-tag |
| 185 | +ci-temp-release-tag: ## Generates a temporary release tag for CI run. |
| 186 | + @if [ -n "$(CI_RELEASE_TAG)" -a -n "$${GITHUB_ENV}" ]; then \ |
| 187 | + echo Setting temporary release tag "$(CI_RELEASE_TAG)"; \ |
| 188 | + echo "TAG=$(CI_RELEASE_TAG)" >> "$${GITHUB_ENV}"; \ |
| 189 | + echo "ABBREV_TAG=$(CI_RELEASE_TAG)" >> "$${GITHUB_ENV}"; \ |
| 190 | + fi |
| 191 | + |
183 | 192 | target-%: ## Builds the specified target defined in the Dockerfile. The build result will only remain in the build cache. |
184 | 193 | @$(BUILD) --target=$* $(COMMON_ARGS) $(TARGET_ARGS) $(CI_ARGS) . |
185 | 194 |
|
|
0 commit comments