From 786e1b5fc4dd743daaff4a6955aaa7033da5a5e7 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 29 Feb 2024 10:53:30 +0100 Subject: [PATCH] build: fix current semantic-release compatibility --- build-and-push.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build-and-push.sh b/build-and-push.sh index dc606f2..00d2b1e 100755 --- a/build-and-push.sh +++ b/build-and-push.sh @@ -1,9 +1,12 @@ #!/usr/bin/env sh -SKIP=no-commit-to-branch,prettier CI=false npx semantic-release +SKIP=no-commit-to-branch,prettier CI=false npx --package semantic-release --package @semantic-release/git semantic-release -VERSION=`npx semantic-release --version` +VERSION=`npm pkg get version | sed -e 's/"//g'` docker image build --tag git.molez.org/mandlm/kopia:${VERSION} --tag git.molez.org/mandlm/kopia:latest . + +docker login git.molez.org + docker image push git.molez.org/mandlm/kopia:${VERSION} docker image push git.molez.org/mandlm/kopia:latest