placeholder files to represent built images

Ricard Illa 2022-08-22 17:23:56 +02:00
parent 6bbe478ef1
commit c1ebc2578f
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
11 changed files with 81 additions and 30 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
gitolite/.env
ansible/.env
ansible/known_hosts
*/out/image-id

View File

@ -3,12 +3,14 @@ REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/amd64
.PHONY: build push buildx
.PHONY: push buildx clean
build: Dockerfile
out/image-id: Dockerfile
mkdir -p $(@D)
docker build -t $(IMG) .
echo $(IMG) > $@
push: build
push: out/image-id
docker image push $(IMG)
buildx: Dockerfile
@ -17,3 +19,6 @@ buildx: Dockerfile
--tag $(IMG) \
--push \
.
clean:
rm -rf out

View File

@ -3,7 +3,7 @@ REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/amd64,linux/arm64
.PHONY: build push buildx
.PHONY: push buildx clean
ARCH=$(shell uname -m)
@ -15,10 +15,12 @@ else
TARGETARCH=amd64
endif
build: Dockerfile entrypoint.sh
out/image-id: Dockerfile entrypoint.sh
mkdir -p $(@D)
docker build -t $(IMG) --build-arg TARGETARCH=$(TARGETARCH) .
echo $(IMG) > $@
push: build
push: out/image-id
docker image push $(IMG)
buildx: Dockerfile entrypoint.sh
@ -27,3 +29,6 @@ buildx: Dockerfile entrypoint.sh
--tag $(IMG) \
--push \
.
clean:
rm -rf out

View File

@ -3,12 +3,14 @@ REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/arm64
.PHONY: build push buildx
.PHONY: push buildx clean
build: Dockerfile
out/image-id: Dockerfile
mkdir -p $(@D)
docker build -t $(IMG) .
echo $(IMG) > $@
push: build
push: out/image-id
docker image push $(IMG)
buildx: Dockerfile
@ -17,3 +19,6 @@ buildx: Dockerfile
--tag $(IMG) \
--push \
.
clean:
rm -rf out

View File

@ -3,12 +3,14 @@ REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/amd64
.PHONY: build push buildx
.PHONY: push buildx clean
build: Dockerfile entrypoint.sh
out/image-id: Dockerfile entrypoint.sh
mkdir -p $(@D)
docker build -t $(IMG) .
echo $(IMG) > $@
push: build
push: out/image-id
docker image push $(IMG)
buildx: Dockerfile entrypoint.sh
@ -17,3 +19,6 @@ buildx: Dockerfile entrypoint.sh
--tag $(IMG) \
--push \
.
clean:
rm -rf out

View File

@ -3,12 +3,14 @@ REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/arm64
.PHONY: build push buildx
.PHONY: push buildx clean
build: Dockerfile entrypoint.sh nginx.conf
out/image-id: Dockerfile entrypoint.sh nginx.conf
mkdir -p $(@D)
docker build -t $(IMG) .
echo $(IMG) > $@
push: build
push: out/image-id
docker image push $(IMG)
buildx: Dockerfile entrypoint.sh nginx.conf
@ -17,3 +19,6 @@ buildx: Dockerfile entrypoint.sh nginx.conf
--tag $(IMG) \
--push \
.
clean:
rm -rf out

View File

@ -3,12 +3,14 @@ REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/amd64,linux/arm64
.PHONY: build push buildx
.PHONY: push buildx clean
build: Dockerfile entrypoint.sh
out/image-id: Dockerfile entrypoint.sh
mkdir -p $(@D)
docker build -t $(IMG) .
echo $(IMG) > $@
push: build
push: out/image-id
docker image push $(IMG)
buildx: Dockerfile entrypoint.sh
@ -17,3 +19,6 @@ buildx: Dockerfile entrypoint.sh
--tag $(IMG) \
--push \
.
clean:
rm -rf out

View File

@ -3,12 +3,14 @@ REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/amd64,linux/arm64
.PHONY: build push buildx
.PHONY: push buildx clean
build: Dockerfile
out/image-id: Dockerfile
mkdir -p $(@D)
docker build -t $(IMG) .
echo $(IMG) > $@
push: build
push: out/image-id
docker image push $(IMG)
buildx: Dockerfile
@ -17,3 +19,6 @@ buildx: Dockerfile
--tag $(IMG) \
--push \
.
clean:
rm -rf out

View File

@ -3,12 +3,14 @@ REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/amd64
.PHONY: build push buildx
.PHONY: push buildx clean
build: Dockerfile entrypoint.sh
out/image-id: Dockerfile entrypoint.sh
mkdir -p $(@D)
docker build -t $(IMG) .
echo $(IMG) > $@
push: build
push: out/image-id
docker image push $(IMG)
buildx: Dockerfile entrypoint.sh
@ -17,3 +19,6 @@ buildx: Dockerfile entrypoint.sh
--tag $(IMG) \
--push \
.
clean:
rm -rf out

View File

@ -3,12 +3,14 @@ REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/amd64,linux/arm64
.PHONY: build push buildx
.PHONY: push buildx clean
build: Dockerfile
out/image-id: Dockerfile
mkdir -p $(@D)
docker build -t $(IMG) .
echo $(IMG) > $@
push: build
push: out/image-id
docker image push $(IMG)
buildx: Dockerfile
@ -17,3 +19,6 @@ buildx: Dockerfile
--tag $(IMG) \
--push \
.
clean:
rm -rf out

View File

@ -3,12 +3,14 @@ REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/amd64,linux/arm64
.PHONY: build push buildx
.PHONY: push buildx clean
build: Dockerfile nginx.conf
out/image-id: Dockerfile nginx.conf
mkdir -p $(@D)
docker build -t $(IMG) .
echo $(IMG) > $@
push: build
push: out/image-id
docker image push $(IMG)
buildx: Dockerfile nginx.conf
@ -17,3 +19,6 @@ buildx: Dockerfile nginx.conf
--tag $(IMG) \
--push \
.
clean:
rm -rf out