Fixed version

This commit is contained in:
Patrice Ferlet 2023-06-07 14:14:52 +02:00
parent 4829165558
commit c2a4dffa83
No known key found for this signature in database
GPG Key ID: F3702E3FAD8F76DC
2 changed files with 9 additions and 8 deletions

View File

@ -2,7 +2,7 @@ FROM alpine
LABEL maintainer="Patrice Ferlet <metal3d@gmail.com>"
ARG VERSION=6.18.0
ARG VERSION=6.19.3
RUN set -xe;\
echo "@community http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories; \

View File

@ -1,24 +1,25 @@
VERSION = 6.18.0
VERSION = 6.19.3
REL = $(VERSION)-1
THREADS = $(shell nproc)
PRIORITY = 0
REPO=metal3d/xmrig
REPO=docker.io/metal3d/xmrig
CC=podman
HUB=https://hub.docker.com/v2
all: build run
build:
docker build -t $(REPO):$(REL) --build-arg VERSION=$(VERSION) .
docker tag $(REPO):$(REL) $(REPO):latest
$(CC) build -t $(REPO):$(REL) --build-arg VERSION=$(VERSION) .
$(CC) tag $(REPO):$(REL) $(REPO):latest
run:
docker run --rm -it -e THREADS=$(THREADS) -e PRIORITY=$(PRIORITY) $(REPO):$(REL)
$(CC) run --rm -it -e THREADS=$(THREADS) -e PRIORITY=$(PRIORITY) $(REPO):$(REL)
deploy: build
docker push $(REPO):$(REL)
docker push $(REPO):latest
$(CC) push $(REPO):$(REL)
$(CC) push $(REPO):latest
test: