This repository was archived by the owner on Dec 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 1.33 KB
/
Makefile
File metadata and controls
26 lines (20 loc) · 1.33 KB
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
.PHONY: all build push
VERSION_STABLE := $(shell curl -sSL http://www.ubnt.com/downloads/unifi/debian/dists/stable/ubiquiti/binary-armhf/Packages.gz | zgrep Version | sed -rn 's/Version: ([[:digit:]].[[:digit:]].[[:digit:]]+)-.*/\1/p')
VERSION_TESTING := $(shell curl -sSL http://www.ubnt.com/downloads/unifi/debian/dists/testing/ubiquiti/binary-armhf/Packages.gz | zgrep Version | sed -rn 's/Version: ([[:digit:]].[[:digit:]].[[:digit:]]+)-.*/\1/p')
all: build-stable push-stable build-testing push-testing
stable: build-stable push-stable
testing: build-testing push-testing
build-stable:
@echo Building stable version ${VERSION_STABLE}
@docker build --no-cache --pull --build-arg suite=stable -t praseodym/unifi-armhf:unifi5 -t praseodym/unifi-armhf:stable -t praseodym/unifi-armhf:latest -t praseodym/unifi-armhf:${VERSION_STABLE} .
push-stable:
@docker push praseodym/unifi-armhf:unifi5
@docker push praseodym/unifi-armhf:stable
@docker push praseodym/unifi-armhf:latest
@docker push praseodym/unifi-armhf:${VERSION_STABLE}
build-testing:
@echo Building testing version ${VERSION_TESTING}
@docker build --no-cache --pull --build-arg suite=testing -t praseodym/unifi-armhf:testing -t praseodym/unifi-armhf:${VERSION_TESTING} .
push-testing:
@docker push praseodym/unifi-armhf:testing
@docker push praseodym/unifi-armhf:${VERSION_TESTING}