Files
ghaymah_dev2 ea900387de
ci / test (push) Canceled after 0s
ci / cross-build (amd64, darwin) (push) Canceled after 0s
ci / cross-build (amd64, linux) (push) Canceled after 0s
ci / cross-build (amd64, windows) (push) Canceled after 0s
ci / cross-build (arm64, darwin) (push) Canceled after 0s
ci / cross-build (arm64, linux) (push) Canceled after 0s
ci / cross-build (arm64, windows) (push) Canceled after 0s
Security hardening: dockerignore engine, upload limits, client-side encryption, cross-platform builds
- archive: use Docker's own patternmatcher for .dockerignore/.gitignore/.gyignore + hard secret/VCS/build-output exclusions
- crypto: AES-256-CTR encrypt the source archive before upload (key/IV to gateway via HTTPS)
- deploy: --max-upload / GY_MAX_UPLOAD (default 500 MB)
- Makefile + CI matrix: cross-compile linux/darwin/windows x amd64/arm64
- tests: crypto round-trip + ignore rules
2026-10-24 10:02:34 -04:00

33 lines
762 B
Makefile

BINARY := gy
VERSION ?= dev
LDFLAGS := -s -w -X gitlab.com/ghaymah/gy/internal/cli.version=$(VERSION)
DIST := dist
.PHONY: build
build:
CGO_ENABLED=0 go build -ldflags "$(LDFLAGS)" -o bin/$(BINARY) ./cmd/gy
.PHONY: release
release:
@mkdir -p $(DIST)
@set -e; for os in linux darwin windows; do \
for arch in amd64 arm64; do \
ext=""; [ "$$os" = "windows" ] && ext=".exe"; \
out="$(DIST)/gy_$${os}_$${arch}$$ext"; \
echo "→ $$out"; \
CGO_ENABLED=0 GOOS=$$os GOARCH=$$arch go build -trimpath -ldflags "$(LDFLAGS)" -o "$$out" ./cmd/gy; \
done; \
done
@echo
@echo "built:"
@ls -la $(DIST)
@cd $(DIST) && sha256sum gy_* > checksums.txt
.PHONY: test
test:
go test ./...
.PHONY: clean
clean:
rm -rf bin $(DIST)