From 5409e96ea82b89d74b12f90776e75785d103784a Mon Sep 17 00:00:00 2001 From: Yuli Date: Mon, 5 Aug 2024 17:04:07 +0300 Subject: [PATCH] release new subversion --- build.sh | 4 ++-- docker-build-push.sh | 7 +++++++ start-docker.sh => docker-run.sh | 0 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 docker-build-push.sh rename start-docker.sh => docker-run.sh (100%) diff --git a/build.sh b/build.sh index ddb8dcff..e8eb2ecb 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh VERSION=$(cat ./version.txt) HASH=$(git rev-parse --short=12 HEAD) @@ -10,7 +10,7 @@ if [ -x ~/go/bin/packr ]; then elif [ -x "packr" ]; then echo "Fond packr" else - echo "installing packr" + echo "Installing packr" go install github.com/gobuffalo/packr/packr@latest fi diff --git a/docker-build-push.sh b/docker-build-push.sh new file mode 100755 index 00000000..e7453a60 --- /dev/null +++ b/docker-build-push.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +VERSION=$(cat ./version.txt) +docker build -t securitybunker/databunker:$VERSION . +docker tag securitybunker/databunker:$VERSION securitybunker/databunker:latest +docker push securitybunker/databunker:$VERSION +docker push securitybunker/databunker:latest diff --git a/start-docker.sh b/docker-run.sh similarity index 100% rename from start-docker.sh rename to docker-run.sh