11# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22#
3- # Generated on 2026-01-20T12:20:16Z by kres 1ffefb6 .
3+ # Generated on 2026-04-22T11:11:05Z by kres 7d181e7 .
44
55# common variables
66
77SHA := $(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]\* )
99TAG_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')
1111BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
1212ARTIFACTS := _out
1313IMAGE_TAG ?= $(TAG )$(TAG_SUFFIX )
1414OPERATING_SYSTEM := $(shell uname -s | tr '[:upper:]' '[:lower:]')
1515GOARCH := $(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")
1617REGISTRY ?= ghcr.io
1718USERNAME ?= siderolabs
1819REGISTRY_AND_USERNAME ?= $(REGISTRY ) /$(USERNAME )
@@ -126,6 +127,14 @@ $(ARTIFACTS): ## Creates artifacts directory.
126127clean : # # Cleans up all artifacts.
127128 @rm -rf $(ARTIFACTS )
128129
130+ .PHONY : ci-temp-release-tag
131+ ci-temp-release-tag : # # Generates a temporary release tag for CI run.
132+ @if [ -n " $( CI_RELEASE_TAG) " -a -n " $$ {GITHUB_ENV}" ]; then \
133+ echo Setting temporary release tag " $( CI_RELEASE_TAG) " ; \
134+ echo " TAG=$( CI_RELEASE_TAG) " >> " $$ {GITHUB_ENV}" ; \
135+ echo " ABBREV_TAG=$( CI_RELEASE_TAG) " >> " $$ {GITHUB_ENV}" ; \
136+ fi
137+
129138target-% : # # Builds the specified target defined in the Pkgfile. The build result will only remain in the build cache.
130139 @$(BUILD ) --target=$* $(COMMON_ARGS ) $(TARGET_ARGS ) $(CI_ARGS ) .
131140
@@ -146,7 +155,7 @@ reproducibility-test-local-%: ## Builds the specified target defined in the Pkg
146155 @diffoscope $(ARTIFACTS ) /build-a $(ARTIFACTS ) /build-b
147156 @rm -rf $(ARTIFACTS ) /build-a $(ARTIFACTS ) /build-b
148157
149- $(ARTIFACTS ) /bldr : $(ARTIFACTS ) # # Downloads bldr binary.
158+ $(ARTIFACTS ) /bldr : | $(ARTIFACTS ) # # Downloads bldr binary.
150159 @curl -sSL https://github.com/siderolabs/bldr/releases/download/$(BLDR_RELEASE ) /bldr-$(OPERATING_SYSTEM ) -$(GOARCH ) -o $(ARTIFACTS ) /bldr
151160 @chmod +x $(ARTIFACTS ) /bldr
152161
@@ -182,3 +191,15 @@ conformance:
182191 @docker pull $(CONFORMANCE_IMAGE )
183192 @docker run --rm -it -v $(PWD ) :/src -w /src $(CONFORMANCE_IMAGE ) enforce
184193
194+ .PHONY : renovate-local
195+ renovate-local : # # runs renovate locally to check syntax and test configuration
196+ @docker run --rm \
197+ --user $(shell id -u) :$(shell id -g) \
198+ -v $(PWD ) :/src \
199+ -w /src \
200+ -e GITHUB_TOKEN \
201+ -e LOG_LEVEL=debug \
202+ -e RENOVATE_PLATFORM=local \
203+ -e RENOVATE_DRY_RUN=full \
204+ renovate/renovate
205+
0 commit comments