[docker] target repo'

This commit is contained in:
Piotr Domański 2024-07-25 21:24:17 +02:00
parent dfec6f5cdc
commit 9e0fee898f
2 changed files with 14 additions and 0 deletions

13
Makefile Normal file
View file

@ -0,0 +1,13 @@
VERSION=0.`git rev-list --count HEAD`
DOCKER_BUILD=docker build
ifeq ($(shell uname -m), arm64)
DOCKER_BUILD=docker buildx build --platform linux/amd64
endif
build:
$(DOCKER_BUILD) -t registry.domandoman.xyz/utils/serverchecker -f Dockerfile .
push:
docker push registry.domandoman.xyz/utils/serverchecker

View file

@ -1,6 +1,7 @@
services:
app:
image: serverchecker
image: registry.domandoman.xyz/utils/serverchecker
restart: unless-stopped
build:
context: .