This repository has been archived by the owner on Oct 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
30 lines (28 loc) · 1.65 KB
/
Makefile
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
tag := $(shell date +"%y.%m.%d")
build-images:
@docker build -f ${CURDIR}/docker/base/Dockerfile -t lucor/fyne-cross:base-latest .
@docker tag lucor/fyne-cross:base-latest lucor/fyne-cross:base-$(tag)
@docker build -f ${CURDIR}/docker/linux-386/Dockerfile -t lucor/fyne-cross:linux-386-latest .
@docker tag lucor/fyne-cross:linux-386-latest lucor/fyne-cross:linux-386-$(tag)
@docker build -f ${CURDIR}/docker/linux-arm/Dockerfile -t lucor/fyne-cross:linux-arm-latest .
@docker tag lucor/fyne-cross:linux-arm-latest lucor/fyne-cross:linux-arm-$(tag)
@docker build -f ${CURDIR}/docker/linux-arm64/Dockerfile -t lucor/fyne-cross:linux-arm64-latest .
@docker tag lucor/fyne-cross:linux-arm64-latest lucor/fyne-cross:linux-arm64-$(tag)
@docker build -f ${CURDIR}/docker/android/Dockerfile -t lucor/fyne-cross:android-latest .
@docker tag lucor/fyne-cross:android-latest lucor/fyne-cross:android-$(tag)
@docker build -f ${CURDIR}/docker/freebsd/Dockerfile -t lucor/fyne-cross:freebsd-latest .
@docker tag lucor/fyne-cross:freebsd-latest lucor/fyne-cross:freebsd-$(tag)
push-images:
$(eval TAG := $(date +"%y.%m.%d"))
@docker push lucor/fyne-cross:base-latest
@docker push lucor/fyne-cross:base-$(tag)
@docker push lucor/fyne-cross:linux-386-latest
@docker push lucor/fyne-cross:linux-386-$(tag)
@docker push lucor/fyne-cross:linux-arm-latest
@docker push lucor/fyne-cross:linux-arm-$(tag)
@docker push lucor/fyne-cross:linux-arm64-latest
@docker push lucor/fyne-cross:linux-arm64-$(tag)
@docker push lucor/fyne-cross:android-latest
@docker push lucor/fyne-cross:android-$(tag)
@docker push lucor/fyne-cross:freebsd-latest
@docker push lucor/fyne-cross:freebsd-$(tag)