teamspeak3/Makefile
Knut Ahlers 2064298759
Add auto-update trigger
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-04-11 13:25:39 +02:00

34 lines
792 B
Makefile

default: test
build:
# Build image
docker build -t "luzifer/teamspeak3:latest" .
hadolint:
# Execute hadolint on Dockerfile
docker run --rm -i \
-v "$(CURDIR):$(CURDIR)" \
-w "$(CURDIR)" \
hadolint/hadolint \
hadolint --ignore=DL3008 Dockerfile
official-tests: build
# Execute official docker-image tests
git clone https://github.com/docker-library/official-images.git /tmp/official-images
/tmp/official-images/test/run.sh "luzifer/teamspeak3:latest"
rm -rf /tmp/official-images
test: hadolint official-tests
update: teamspeak_version_update test
teamspeak_version_update:
docker run --rm -i \
-v "$(CURDIR):$(CURDIR)" \
-w "$(CURDIR)" \
python:3-alpine \
sh -c "pip install -r patcher/requirements.txt && python3 patcher/index.py"
tag:
bash ./patcher/tag.sh