mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:36 +02:00
update Makefile
This commit is contained in:
parent
6371772ee0
commit
0c2f8fce66
@ -3,6 +3,7 @@
|
||||
#
|
||||
|
||||
RELEASE = edge
|
||||
IMAGE = vimagick/alpine-arm
|
||||
|
||||
rootfs.tar.xz: mkimage-alpine.sh
|
||||
ARCH=armhf ./mkimage-alpine.sh -r $(RELEASE) -s
|
||||
@ -14,8 +15,14 @@ mkimage-alpine.sh:
|
||||
-e '/docker (tag|run)/d' mkimage-alpine.sh
|
||||
chmod +x mkimage-alpine.sh
|
||||
|
||||
latest:
|
||||
docker tag $(IMAGE):$(RELEASE:v%=%) vimagick/alpine-arm:latest
|
||||
|
||||
push:
|
||||
docker push vimagick/alpine-arm:$(RELEASE:v%=%)
|
||||
docker push $(IMAGE):$(RELEASE:v%=%)
|
||||
|
||||
test:
|
||||
docker run --rm $(IMAGE):$(RELEASE:v%=%) uname -a
|
||||
|
||||
clean:
|
||||
rm -f mkimage-alpine.sh rootfs.tar.xz
|
||||
|
@ -11,6 +11,7 @@ alpine-arm
|
||||
#
|
||||
|
||||
RELEASE = edge
|
||||
IMAGE = vimagick/alpine-arm
|
||||
|
||||
rootfs.tar.xz: mkimage-alpine.sh
|
||||
ARCH=armhf ./mkimage-alpine.sh -r $(RELEASE) -s
|
||||
@ -22,8 +23,14 @@ mkimage-alpine.sh:
|
||||
-e '/docker (tag|run)/d' mkimage-alpine.sh
|
||||
chmod +x mkimage-alpine.sh
|
||||
|
||||
latest:
|
||||
docker tag $(IMAGE):$(RELEASE:v%=%) vimagick/alpine-arm:latest
|
||||
|
||||
push:
|
||||
docker push vimagick/alpine-arm:$(RELEASE:v%=%)
|
||||
docker push $(IMAGE):$(RELEASE:v%=%)
|
||||
|
||||
test:
|
||||
docker run --rm $(IMAGE):$(RELEASE:v%=%) uname -a
|
||||
|
||||
clean:
|
||||
rm -f mkimage-alpine.sh rootfs.tar.xz
|
||||
@ -33,12 +40,16 @@ clean:
|
||||
|
||||
```
|
||||
$ make RELEASE=edge
|
||||
$ make clean
|
||||
$ make RELEASE=v3.2
|
||||
$ docker tag vimagick/alpine-arm:3.2 vimagick/alpine-arm:latest
|
||||
$ docker run --rm vimagick/alpine-arm:edge uname -a
|
||||
$ docker run --rm vimagick/alpine-arm:3.2 uname -a
|
||||
$ make test RELEASE=edge
|
||||
$ make push RELEASE=edge
|
||||
$ make clean
|
||||
|
||||
$ make RELEASE=v3.2
|
||||
$ make test RELEASE=v3.2
|
||||
$ make push RELEASE=v3.2
|
||||
$ make clean
|
||||
|
||||
$ make latest RELEASE=v3.2
|
||||
$ make test RELEASE=latest
|
||||
$ make push RELEASE=latest
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user