-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdefault.mk
More file actions
32 lines (22 loc) · 811 Bytes
/
default.mk
File metadata and controls
32 lines (22 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
SHELL := /bin/bash
# all monitor components share/use the following targets/exports
BUILD_TAG ?= git-$(shell git rev-parse --short HEAD)
DRYCC_REGISTRY ?= ${DEV_REGISTRY}
IMAGE_PREFIX ?= drycc
PLATFORM ?= linux/amd64,linux/arm64
include includes.mk
include versioning.mk
include deploy.mk
SHELLCHECK_PREFIX := podman run -v ${CURDIR}:/workdir -w /workdir ${DEV_REGISTRY}/drycc/go-dev shellcheck
SHELL_SCRIPTS = $(wildcard rootfs/usr/local/bin/*)
build: podman-build
podman-build:
podman build --build-arg CODENAME=${CODENAME} -t ${IMAGE} .
podman tag ${IMAGE} ${MUTABLE_IMAGE}
clean: check-podman
podman rmi $(IMAGE)
test: test-style podman-build
test-style:
${SHELLCHECK_PREFIX} $(SHELL_SCRIPTS)
test: test-style podman-build
.PHONY: build push podman-build clean upgrade deploy test test-style