|
| 1 | +TAG_COMMIT := $(shell git rev-list --abbrev-commit --tags --max-count=1) |
| 2 | +VERSION := $(shell git describe --abbrev=0 --tags ${TAG_COMMIT} 2>/dev/null || true) |
| 3 | + |
| 4 | +docker_build_develop: |
| 5 | + docker build -t botium/botium-speech-frontend:develop frontend |
| 6 | + docker build -t botium/botium-speech-watcher:develop watcher |
| 7 | + docker build -f stt/Dockerfile.kaldi.en -t botium/botium-speech-kaldi-en:develop stt |
| 8 | + docker build -f stt/Dockerfile.kaldi.de -t botium/botium-speech-kaldi-de:develop stt |
| 9 | + docker build -f tts/Dockerfile.marytts -t botium/botium-speech-marytts:develop tts |
| 10 | + docker build -t botium/botium-speech-dictate:develop dictate |
| 11 | + |
| 12 | +docker_publish_develop: |
| 13 | + docker push botium/botium-speech-frontend:develop |
| 14 | + docker push botium/botium-speech-watcher:develop |
| 15 | + docker push botium/botium-speech-kaldi-en:develop |
| 16 | + docker push botium/botium-speech-kaldi-de:develop |
| 17 | + docker push botium/botium-speech-marytts:develop |
| 18 | + docker push botium/botium-speech-dictate:develop |
| 19 | + |
| 20 | +docker_build_release: |
| 21 | + docker build -t botium/botium-speech-frontend:$(VERSION) frontend |
| 22 | + docker build -t botium/botium-speech-watcher:$(VERSION) watcher |
| 23 | + docker build -f stt/Dockerfile.kaldi.en -t botium/botium-speech-kaldi-en:$(VERSION) stt |
| 24 | + docker build -f stt/Dockerfile.kaldi.de -t botium/botium-speech-kaldi-de:$(VERSION) stt |
| 25 | + docker build -f tts/Dockerfile.marytts -t botium/botium-speech-marytts:$(VERSION) tts |
| 26 | + docker build -t botium/botium-speech-dictate:$(VERSION) dictate |
| 27 | + |
| 28 | +docker_publish_release: |
| 29 | + docker push botium/botium-speech-frontend:$(VERSION) |
| 30 | + docker push botium/botium-speech-watcher:$(VERSION) |
| 31 | + docker push botium/botium-speech-kaldi-en:$(VERSION) |
| 32 | + docker push botium/botium-speech-kaldi-de:$(VERSION) |
| 33 | + docker push botium/botium-speech-marytts:$(VERSION) |
| 34 | + docker push botium/botium-speech-dictate:$(VERSION) |
| 35 | + |
| 36 | +docker_latest_release: |
| 37 | + docker tag botium/botium-speech-frontend:$(VERSION) botium/botium-speech-frontend:latest |
| 38 | + docker push botium/botium-speech-frontend:latest |
| 39 | + |
| 40 | + docker tag botium/botium-speech-watcher:$(VERSION) botium/botium-speech-watcher:latest |
| 41 | + docker push botium/botium-speech-watcher:latest |
| 42 | + |
| 43 | + docker tag botium/botium-speech-kaldi-en:$(VERSION) botium/botium-speech-kaldi-en:latest |
| 44 | + docker push botium/botium-speech-kaldi-en:latest |
| 45 | + |
| 46 | + docker tag botium/botium-speech-kaldi-de:$(VERSION) botium/botium-speech-kaldi-de:latest |
| 47 | + docker push botium/botium-speech-kaldi-de:latest |
| 48 | + |
| 49 | + docker tag botium/botium-speech-marytts:$(VERSION) botium/botium-speech-marytts:latest |
| 50 | + docker push botium/botium-speech-marytts:latest |
| 51 | + |
| 52 | + docker tag botium/botium-speech-dictate:$(VERSION) botium/botium-speech-dictate:latest |
| 53 | + docker push botium/botium-speech-dictate:latest |
0 commit comments