mirror of
https://github.com/luzifer-docker/teamspeak3.git
synced 2024-11-08 12:00:04 +00:00
33 lines
792 B
Makefile
33 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
|