Skip to content

chore: exclude non-build files from container contexts - #15

Merged
Skaronator merged 1 commit into
mainfrom
chore/exclude-non-build-container-files
Oct 30, 2026
Merged

Skaronator merged 1 commit into
mainfrom
chore/exclude-non-build-container-files

Conversation

@Skaronator

Copy link
Copy Markdown
Contributor

Summary

  • Add a Docker-compatible .dockerignore excluding Git/GitHub metadata, README, packaging license, Renovate config, root track metadata, and host-side tests from the build context.
  • Retain the Containerfile and application build inputs.
  • Let the shared release planner compare effective track settings rather than treating every raw meta.yaml edit as a change to every track.
  • Host-side smoke tests remain release inputs in the shared planner even though they are not copied into the image.

Dependency and rollout

Merge tuxcrate/github-actions#29 before this PR so the shared workflow and release tooling are published first.
Adding .dockerignore changes build inputs and intentionally triggers an initial production release after merge. Subsequent README/workflow-only commits can skip production builds/releases; scheduled and manual runs still rebuild.

Validation

  • Root metadata validated with the shared release planner.
  • Buildx static checks passed for every active track, separately for linux/amd64 and linux/arm64.
  • Full uncached image builds and runtime tests were not run locally; the local Docker driver lacks multi-platform support. The existing required container PR CI should validate both platforms before merge.

@github-actions

Copy link
Copy Markdown

Container preview: stable

Built for merge commit 394ab33fcd3635ad4ab3a2509cdc62b79c3aab4d on linux/amd64,linux/arm64.

Pull the latest build of this PR:

docker pull ghcr.io/tuxcrate/zrepl-pr:pr-15-stable

Pull the build for this commit:

docker pull ghcr.io/tuxcrate/zrepl-pr:pr-15-stable-394ab33fcd3635ad4ab3a2509cdc62b79c3aab4d

Pin this exact image (tags may change on reruns):

docker pull ghcr.io/tuxcrate/zrepl-pr@sha256:9c4cf3bef72e03c74d6023f65c7fe67126457aa75bb7d6d4bc8dd98ca50de3a3

Build details. Preview images are for testing, not production.

Synthetic release.json (validation only)

Generated to validate release metadata. Revision r0 is a placeholder, not a published release revision; the digest identifies the tested multiarch artifact.

{
  "schemaVersion": 2,
  "image": "ghcr.io/tuxcrate/zrepl",
  "track": "stable",
  "version": "0.7.0",
  "imageVersion": "0.7.0",
  "revision": 0,
  "immutableTag": "0.7.0-r0",
  "digest": "sha256:9c4cf3bef72e03c74d6023f65c7fe67126457aa75bb7d6d4bc8dd98ca50de3a3",
  "aliasesAtPublication": [
    "0.7.0",
    "0.7",
    "latest"
  ],
  "platforms": [
    "linux/amd64",
    "linux/arm64"
  ],
  "sourceCommit": "394ab33fcd3635ad4ab3a2509cdc62b79c3aab4d",
  "os_flavor": "debian",
  "os_version": "13.7"
}

@Skaronator
Skaronator merged commit 53d4270 into main Oct 30, 2026
6 checks passed
@Skaronator
Skaronator deleted the chore/exclude-non-build-container-files branch October 30, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant