Add GitHub Actions CI and image release #184
Reference in New Issue
Block a user
Delete Branch "benvin/github-actions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Releases and CI move to GitHub Actions on the IUCLabs mirror; runners there have no Docker daemon, so images are built daemonless and published to GHCR.
ci.yml: pre-commit, go vet + golangci-lint (new issues only), tests, build, ko image check, UI buildrelease.yml: onv[0-9]*tags, pushghcr.io/iuclabs/artifactapi-ui(scripts/ui-image.shlayersui/dist+ nginx conf onto digest-pinnednginx:alpine), thenghcr.io/iuclabs/artifactapivia ko (distroless static nonroot, version ldflag)org.opencontainers.image.source;latestmoves only after bothvX.Y.Ztags existui/Dockerfile.uito the same nginx digest.github/CODEOWNERSfor@IUCLabs/maintainersnpm ci && npm run buildand the UI image; a UI build or push failure leavesartifactapi:<tag>+latestpublished with no matching UI → build the UI dist first and push UI then API (or pushlatestlast).org.opencontainers.image.source=https://github.com/IUCLabs/artifactapilabel, so the ghcr packages are not linked to the repo (GITHUB_TOKEN pushes can be denied on later tags, and public visibility is not guaranteed) → add the label to both images (ko image-label flag,crane mutate --labelfor the UI) and make the packages public.-b nginx:alpinepulls from Docker Hub unauthenticated and floating; rate limits on a shared runner IP will fail the release, and the base can differ between tags → pin a tag/digest (or a mirrored base reachable on 443).v*trigger; usev[0-9]*to match the brief/mirror.crane tagloop runs after the versioned push, so a failure leaves a version tag withoutlatest; acceptable only if the release is re-runnable.No findings.