mirror of
https://github.com/Direct-Dev-Ru/go-lcg.git
synced 2025-11-16 01:29:55 +00:00
release v1.0.2
This commit is contained in:
@@ -4,5 +4,5 @@ docker build -f Dockerfiles/LocalCompile/Dockerfile --target bin-linux --output
|
||||
docker build -f Dockerfiles/LocalCompile/Dockerfile --target bin-linux --output bin-linux-arm64/ --platform linux/arm64 .
|
||||
|
||||
# in linux setuid
|
||||
# sudo chown root:root bin-linux/go-ansible-vault
|
||||
# sudo chmod +s bin-linux/go-ansible-vault
|
||||
# sudo chown root:root bin-linux/lcg
|
||||
# sudo chmod +s bin-linux/lcg
|
||||
@@ -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
|
||||
|
||||
@@ -5,28 +5,18 @@ VERSION_FILE="VERSION.txt"
|
||||
|
||||
GITHUB_TOKEN="${GITHUB_TOKEN}" # Replace with your GitHub token
|
||||
|
||||
REPO="Direct-Dev-Ru/binaries.git" # Replace with your GitHub username/repo
|
||||
REPO="direct-dev-ru/binaries" # Replace with your GitHub username/repo
|
||||
|
||||
TAG=go-ansible-vault.$(cat "$VERSION_FILE")
|
||||
TAG=lcg.$(cat "$VERSION_FILE")
|
||||
|
||||
echo $TAG
|
||||
echo TAG: $TAG
|
||||
|
||||
RELEASE_NAME="Binaries ${TAG}" # Replace with your release title
|
||||
|
||||
RELEASE_DIR="/home/su/projects/golang/ansible-vault/binaries-for-upload"
|
||||
|
||||
# Create a new release
|
||||
# response=$(curl -s -X POST \
|
||||
# -H "Authorization: Bearer ${GITHUB_TOKEN}" \
|
||||
# -H "Accept: application/vnd.github+json" \
|
||||
# -H "X-GitHub-Api-Version: 2022-11-28" \
|
||||
# https://api.github.com/repos/$REPO/releases \
|
||||
# -d "{\"tag_name\": \"$TAG\", \"name\": \"$RELEASE_NAME\"}")
|
||||
RELEASE_DIR="/home/su/projects/golang/linux-command-gpt/binaries-for-upload"
|
||||
|
||||
body="{\"tag_name\":\"${TAG}\", \"target_commitish\":\"main\", \"name\":\"${TAG}\", \
|
||||
\"body\":\"${TAG}\", \"draft\":false, \"prerelease\":false, \"generate_release_notes\":false}"
|
||||
|
||||
echo $body
|
||||
echo BODY: $body
|
||||
|
||||
response=$(curl -L -X POST \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
@@ -35,7 +25,6 @@ response=$(curl -L -X POST \
|
||||
https://api.github.com/repos/direct-dev-ru/binaries/releases \
|
||||
-d $body)
|
||||
|
||||
|
||||
echo $response
|
||||
|
||||
# Extract the upload URL from the response
|
||||
|
||||
Reference in New Issue
Block a user