2018-10-29 16:16:33 +00:00
|
|
|
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
|
|
|
|
|
2019-03-29 13:32:21 +00:00
|
|
|
update: teamspeak_version_update test tag
|
2018-10-29 16:16:33 +00:00
|
|
|
|
2019-03-29 13:32:21 +00:00
|
|
|
teamspeak_version_update:
|
2018-10-29 16:16:33 +00:00
|
|
|
docker run --rm -i \
|
|
|
|
-v "$(CURDIR):$(CURDIR)" \
|
|
|
|
-w "$(CURDIR)" \
|
|
|
|
python:3-alpine \
|
|
|
|
sh -c "pip install -r patcher/requirements.txt && python3 patcher/index.py"
|
2019-03-29 13:32:21 +00:00
|
|
|
|
|
|
|
tag:
|
|
|
|
bash ./patcher/tag.sh
|