From 98634b4b8ab01f8740384e5e83d74f64ba863152 Mon Sep 17 00:00:00 2001 From: 1e99 Date: Sat, 9 Nov 2024 19:34:45 +0100 Subject: [PATCH] add simple build script --- build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..535fe90 --- /dev/null +++ b/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash +set -e + +commit="$(git rev-parse HEAD)" +image="git.1e99.eu/1e99/passed" + +docker build -t $image:$commit . +docker tag $image:$commit $image:latest + +docker push $image:$commit +docker push $image:latest