kopia/build-and-push.sh

13 lines
435 B
Bash
Raw Permalink Normal View History

2023-08-16 20:48:54 +00:00
#!/usr/bin/env sh
SKIP=no-commit-to-branch,prettier CI=false npx --package semantic-release --package @semantic-release/git semantic-release
2023-08-16 20:48:54 +00:00
VERSION=`npm pkg get version | sed -e 's/"//g'`
2023-08-16 20:48:54 +00:00
docker image build --tag git.molez.org/mandlm/kopia:${VERSION} --tag git.molez.org/mandlm/kopia:latest .
docker login git.molez.org
2023-08-16 20:48:54 +00:00
docker image push git.molez.org/mandlm/kopia:${VERSION}
docker image push git.molez.org/mandlm/kopia:latest