This commit is contained in:
2025-07-28 15:46:38 +03:00
parent 828c6bb3e1
commit 54097ba74d
7 changed files with 314 additions and 26 deletions

View File

@@ -44,3 +44,27 @@ docker-build:
docker-run:
echo "Running {{app_name}} in Docker..."
docker run --rm -v $(pwd):/workspace ghcr.io/ivuorinen/{{app_name}} go-test-results.json go-test-results.sarif
# Check if goreleaser is installed
check-goreleaser:
@which goreleaser > /dev/null || (echo "goreleaser not found. Please install from https://goreleaser.com/install/" && exit 1)
# Create a snapshot release (for testing)
release-snapshot: check-goreleaser
echo "Creating snapshot release..."
goreleaser release --snapshot --clean
# Create a local release (without publishing)
release-local: check-goreleaser
echo "Creating local release..."
goreleaser release --skip=publish --clean
# Create and publish a release (requires GITHUB_TOKEN)
release: check-goreleaser
echo "Creating and publishing release..."
GITHUB_TOKEN=$(gh auth token) goreleaser release --clean
# Validate goreleaser configuration
release-check: check-goreleaser
echo "Checking goreleaser configuration..."
goreleaser check