-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (18 loc) · 773 Bytes
/
Copy pathMakefile
File metadata and controls
20 lines (18 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
IMAGE_NAME := b0ch3nski/vpnc-dnsmasq-socks5
IMAGE_VERSION ?= $(or $(shell git describe --tags --always),latest)
IMAGE_PLATFORMS ?= linux/amd64,linux/386,linux/arm64,linux/arm/v7
DEBIAN_VERSION ?= bookworm
build:
docker buildx build \
--pull \
--push \
--platform="$(IMAGE_PLATFORMS)" \
--build-arg DEBIAN_VERSION="$(DEBIAN_VERSION)" \
--label="org.opencontainers.image.title=$(IMAGE_NAME)" \
--label="org.opencontainers.image.version=$(IMAGE_VERSION)" \
--label="org.opencontainers.image.url=https://github.com/$(IMAGE_NAME)" \
--label="org.opencontainers.image.revision=$(shell git log -1 --format=%H)" \
--label="org.opencontainers.image.created=$(shell date --iso-8601=seconds)" \
--tag="$(IMAGE_NAME):$(IMAGE_VERSION)" \
--tag="$(IMAGE_NAME):latest" \
.