Sign inSign up

jfxs/image-factory

By jfxs

•Updated 6 days ago

An image to automatically update and publish Docker images by comparing SBOM changes

Image
Integration & delivery
0

10K+

jfxs/image-factory repository overview

⁠Docker Image Factory

Software License Pipeline Status

A toolkit to automatically sign, update and publish Docker images. It contains a reusable GitLab CI component⁠ and a specific Docker image with useful tools:

  • cosign,
  • curl,
  • docker,
  • docker-pushrm,
  • git,
  • jq,
  • skopeo,
  • syft,
  • task.

The image is also automatically signed, updated and published:

  • lightweight image based on Alpine,
  • multiarch with support of amd64 and arm64,
  • automatically kept up to date by Renovate (base image, Docker, and tool packages),
  • image signed with Cosign⁠,
  • an SBOM attestation added using Syft⁠,
  • available on Docker Hub and Quay.io.

GitLab The main repository.

Docker Hub The Docker Hub registry.

Quay.io The Quay.io registry.

⁠Built with

Docker latest tag is 29.8.1-003, 29.8, 29⁠ and contains:

NameVersionType
cosign3.0.6-r2apk
curl8.22.0-r0apk
git2.54.0-r0apk
go-task3.51.1-r1apk
jq1.8.2-r0apk
skopeo1.20.1-r1apk
syft1.42.4-r2apk

Details are updated on Dockerhub Overview page⁠ when an image is published.

⁠Versioning

Every publication pushes four tags pointing to the same image digest:

<docker_version>-<increment>    Example: 29.6.2-003
<docker_major>.<docker_minor>   Example: 29.6
<docker_major>                  Example: 29
latest

The increment differentiates builds sharing the same Docker version.

⁠Signature and attestation

Cosign⁠ public key:

-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEa3yV6+yd/l4zh/tfT6Tx+zn0dhy3
BhFqSad1norLeKSCN2MILv4fZ9GA6ODOlJOw+7vzUvzZVr9IXnxEdjoWJw==
-----END PUBLIC KEY-----

The public key is also available online: https://gitlab.com/op_so/docker/cosign-public-key/-/raw/main/cosign.pub⁠.

To verify an image:

cosign verify --key cosign.pub $IMAGE_URI

To verify and get the SBOM attestation:

cosign verify-attestation --key cosign.pub --type spdxjson $IMAGE_URI | jq '.payload | @base64d | fromjson | .predicate'

⁠Authors

⁠License

This program is free software: you can redistribute it and/or modify it under the terms of the MIT License (MIT). See the LICENSE⁠ for details.

Tag summary

Content type

Image

Digest

sha256:735835071…

Size

222.1 MB

Last updated

6 days ago

docker pull jfxs/image-factory