release v1.0.2

This commit is contained in:
2024-12-03 18:00:10 +06:00
parent 8758ab19ef
commit fa0a8565c3
7 changed files with 22 additions and 25 deletions

View File

@@ -1,13 +1,13 @@
#!/bin/bash
REPO=kuznetcovay/go-ansible-vault
REPO=kuznetcovay/go-lcg
VERSION=$1
if [ -z "$VERSION" ]; then
VERSION=v1.0.8
fi
BRANCH=main
echo ${VERSION} > VERSION.txt
echo "${VERSION}" > VERSION.txt
export GOCACHE="${HOME}/.cache/go-build"
# Save the current branch
@@ -34,7 +34,7 @@ if ! go test -v -run=^Test; then
fi
# Push multi-platform images
docker buildx build --push --platform linux/amd64,linux/arm64 -t ${REPO}:${VERSION} . ||
docker buildx build --push --platform linux/amd64,linux/arm64 -t ${REPO}:"${VERSION}" . ||
{
echo "docker buildx build --push failed. Exiting with code 1."
exit 1