-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (27 loc) · 978 Bytes
/
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
31
32
33
#Dockerfile vars
bitcoin_version=28.0
#vars
IMAGENAME=bitcoin-core
REPO=ghcr.io/jbgosselin
IMAGEFULLNAME=${REPO}/${IMAGENAME}
IMAGEAUTHORS=https://github.com/jbgosselin
IMAGESOURCE=https://github.com/jbgosselin/containers/tree/main/bitcoin-core
IMAGEDOC=https://github.com/jbgosselin/containers/tree/main/bitcoin-core/README.md
.PHONY: build push-version push-latest
build:
docker buildx build --pull \
--platform=linux/arm64,linux/amd64 \
--output=type=image \
--provenance=false \
--build-arg "BITCOIN_VERSION=${bitcoin_version}" \
--label "org.opencontainers.image.authors=${IMAGEAUTHORS}" \
--label "org.opencontainers.image.source=${IMAGESOURCE}" \
--label "org.opencontainers.image.documentation=${IMAGEDOC}" \
--tag "${IMAGEFULLNAME}:${bitcoin_version}" \
--tag "${IMAGEFULLNAME}:latest" \
.
push-version:
docker push "${IMAGEFULLNAME}:${bitcoin_version}"
push-latest:
docker push "${IMAGEFULLNAME}:latest"
push-all: push-version push-latest