-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
30 lines (26 loc) · 1.06 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
VERSION ?= 1.0.0
BUILDER ?= docker build
all: images
images:
$(BUILDER) --pull \
-f Dockerfile.centos7 \
-t evryfs/github-actions-rpmbuilder:centos7-latest \
-t evryfs/github-actions-rpmbuilder:centos7-$(VERSION) \
-t quay.io/evryfs/github-actions-rpmbuilder:centos7-latest \
-t quay.io/evryfs/github-actions-rpmbuilder:centos7-$(VERSION) \
.
$(BUILDER) --pull \
-f Dockerfile.centos8 \
-t evryfs/github-actions-rpmbuild:centos8-latest \
-t evryfs/github-actions-rpmbuild:centos8-$(VERSION) \
-t quay.io/evryfs/github-actions-rpmbuilder:centos8-latest \
-t quay.io/evryfs/github-actions-rpmbuilder:centos8-$(VERSION) \
.
push:
docker push quay.io/evryfs/github-actions-rpmbuilder:centos7-latest
docker push quay.io/evryfs/github-actions-rpmbuilder:centos7-$(VERSION)
docker push quay.io/evryfs/github-actions-rpmbuilder:centos8-latest
docker push quay.io/evryfs/github-actions-rpmbuilder:centos8-$(VERSION)
clean:
docker rmi -f evryfs/github-actions-rpmbuilder:centos7-latest | true
docker rmi -f evryfs/github-actions-rpmbuilder:centos8-latest | true