mirceanton / containers

Various container images for various tools.
Apache License 2.0
0 stars 0 forks source link

Release images for multiple OSs #16

Open mircea-pavel-anton opened 2 months ago

mircea-pavel-anton commented 2 months ago

Release the same version of the tool but packaged in different base images, i.e. alpine, bookworm and scratch. Append the OS name to the tag, i.e. vX.Y.Z-alpine3.20 or vX.Y.Z-bookworm. Scratch should have no such suffix.

# metadata.yaml
---
# TODO: renovate comment + regex thingy
version: v3.38.0 #to be injected as build arg

images: # push to multiple registries 
  - ghcr.io/mirceanton/taskfile
  - docker.io/antonmircea/taskfile

platforms: # multi-arch support
  - linux/amd64
  - linux/arm64v8

variants:
  - tag: {{.Version}}-alpine3.20
    build-args: |
      BASE_IMAGE=alpine3.20

  - tag: {{.Version}}-bookworm
    build-args: |
      BASE_IMAGE=debian:bookworm
gedw99 commented 1 month ago

So what’s the issue ?

I don’t see any road blocks ..

mircea-pavel-anton commented 1 month ago

@gedw99 I'm more looking for feedback as to what others might need.

For my particular usecase, which prompted the creation of this repo, a scratch base is enough.

I'm wondering if others would want/need a different base, and if so which.