ci: enhanced CI pipeline, release workflow, and proxy support#20
Merged
Conversation
- CI: 4 jobs (lint/build/test+docker) with race detection, coverage artifact, and ghcr.io push on main - Release: on v* tag — vet+test, Docker push with semver+latest tags, auto-generated release notes via softprops/action-gh-release - Dockerfile: proxy ARGs for local builds behind filtered internet - docker-compose.yml: proxy args passthrough from .env - Makefile: proxy-forwarding docker-build target - .env.example: commented proxy vars Closes #9
covdata tool conflicts with -race on Go 1.22 runner. Replace with -cover flag for inline coverage output.
go.mod requires go 1.25.3 but Dockerfile used 1.22-alpine, causing go mod download to fail with version mismatch.
covdata tool conflicts with -race on Go 1.22 runner for packages without test files, causing CI to fail with exit code 1. Coverage tracking moved to issue #21.
Owner
Author
|
Updated with fix for #22:
|
Owner
Author
|
Updated with fix for #22:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Complete CI/CD overhaul: 4-job CI pipeline with Docker + ghcr.io, semantic release workflow with auto-generated release notes, and local proxy support for filtered environments.
Changes
New files
.github/workflows/release.yml— Onv*tag push: vet+test, Docker build+push (:semver+:latestto ghcr.io), auto-generate release notes viasoftprops/action-gh-releaseModified files
.github/workflows/ci.yml— 4 jobs (lint/build/test/docker) with race detection, coverage artifact upload, Docker smoke test on all PRs, and ghcr.io push on mainDockerfile— +3 proxy ARGs (http_proxy,https_proxy,no_proxy) for local builds behind filtered internetdocker-compose.yml— proxy args passthrough from.envwith empty-string fallbackMakefile—docker-builduses--build-argshorthand (reads from shell env, no-ops if unset).env.example— commented proxy varsDesign decisions
dockerjob pushes onmainonly (push: ${{ github.ref == 'refs/heads/main' }}) — PRs build-test onlyvMAJOR.MINOR.PATCHtag — includes vet+test gate before push.envVerification
go vet ./...— cleango build ./...— compilesgo test ./... -race— 37 tests, 0 failuresCloses #9