build: fix current semantic-release compatibility

This commit is contained in:
Michael Mandl 2024-02-29 10:53:30 +01:00
parent 79c69793b8
commit 786e1b5fc4
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7

View file

@ -1,9 +1,12 @@
#!/usr/bin/env sh #!/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 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:${VERSION}
docker image push git.molez.org/mandlm/kopia:latest docker image push git.molez.org/mandlm/kopia:latest