aboutsummaryrefslogtreecommitdiff
path: root/.scripts.d/20-build.sh
diff options
context:
space:
mode:
authorChristian Segundo2024-04-06 22:32:02 +0200
committerChristian Segundo2024-04-07 03:35:46 +0200
commitd4b6f246e6a16110650a57185b3d9b5acb579cf1 (patch)
tree98cf60468de04f1b70429a229072270dca6c6a98 /.scripts.d/20-build.sh
parent6e7734ff026b5be928703a4ad31ba4abaaf1535b (diff)
downloadlanguagetool-d4b6f246e6a16110650a57185b3d9b5acb579cf1.tar.gz
move ci
Diffstat (limited to '.scripts.d/20-build.sh')
-rw-r--r--.scripts.d/20-build.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/.scripts.d/20-build.sh b/.scripts.d/20-build.sh
new file mode 100644
index 0000000..56af8df
--- /dev/null
+++ b/.scripts.d/20-build.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+# vim: ai:ts=8:sw=8:noet
+set -EeufCo pipefail
+export SHELLOPTS # propagate set to children by default
+IFS=$'\t\n'
+
+# check required commands are in place
+command -v docker >/dev/null 2>&1 || {
+ echo 'please install docker-client'
+ exit 1
+}
+
+docker buildx build \
+ --no-cache \
+ --pull \
+ --load \
+ --tag "chn2guevara/languagetool:${BUILD_ID}" \
+ .