first few OCI lables

This commit is contained in:
2023-04-18 13:29:16 +02:00
parent 9bd451d131
commit 25c138ec37
2 changed files with 15 additions and 1 deletions

View File

@@ -7,6 +7,8 @@ VERSION=20230411
IMAGENAME=restic
REPO=git.rre.nu/jonas
BUILD_TIME := $(shell TZ=UTC date --iso-8601=ns)
SHELL := /bin/bash
require_clean_git:
@@ -24,7 +26,11 @@ require_clean_git:
default: build
build:
podman build --build-arg VERSION=$(VERSION) --tag docker.io/bardak/restic:$(VERSION) .
podman build \
--build-arg VERSION=$(VERSION) \
--build-arg BUILD_TIME=${BUILD_TIME} \
--tag docker.io/bardak/restic:$(VERSION) \
.
clean:
podman image rm docker.io/bardak/restic:$(VERSION)