mirror of
https://github.com/status-im/codimd.git
synced 2025-01-13 02:24:53 +00:00
209cd29b71
Signed-off-by: Raccoon <raccoon@hackmd.io>
14 lines
467 B
Bash
Executable File
14 lines
467 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CURRENT_DIR=$(dirname "$BASH_SOURCE")
|
|
|
|
GIT_SHA1="$(git rev-parse HEAD)"
|
|
GIT_SHORT_ID="${SHA1:0:8}"
|
|
GIT_TAG=$(git describe --exact-match --tags $(git log -n1 --pretty='%h'))
|
|
|
|
DOCKER_TAG="${GIT_TAG:-$GIT_SHORT_ID}"
|
|
|
|
docker build -t "hackmdio/codimd:$DOCKER_TAG" -f "$CURRENT_DIR/Dockerfile" "$CURRENT_DIR/.."
|
|
|
|
docker build --build-arg RUNTIME=node-10-cjk-0baafb79 -t "hackmdio/codimd:$DOCKER_TAG-cjk" -f "$CURRENT_DIR/Dockerfile" "$CURRENT_DIR/.."
|