Andreas Rocznik 1050a93015
Some checks failed
Test / test-always-true (push) Failing after 5s
Test / test-always-false (push) Failing after 5s
remove debu output
2023-12-08 20:33:29 +01:00
""
2023-12-08 15:00:06 +01:00
2023-12-08 20:33:29 +01:00
2022-05-30 20:24:25 -04:00
2023-01-11 01:07:37 -05:00

docker-check-base-image-diff

A Github Action that checks whether a derived image does not consist of a base image. Leverages skopeo and jq.

Based on lucacome's docker-image-update-checker.

Usage

Note that this action assumes that skopeo is installed; this appears to be true for GitHub's Ubuntu runners.

Inputs

base-image

A required argument, this represents the "base" image you want to check against.

As this is based on skopeo, it expects a string representing a container, and following a certain format (e.g. docker://rust:slim-buster). For more information, see the skopeo README.

derived-image

A required argument, this represents the "derived" image you want to check.

As this is based on skopeo, it expects a string representing a container, and following a certain format (e.g. docker://rust:slim-buster). For more information, see the skopeo README.

Outputs

differs

The action returns either true or false, indicating if the derived image differs from the base image (e.g. if derived does not contain the base, it returns true).

Example

- name: Run
  id: run
  uses: ClementTsang/docker-check-base-image-diff@v0.0.2
  with:
    base-image: docker://rust:slim-buster
    derived-image: docker://ghcr.io/clementtsang/cargo-deb-arm
Description
A Github Action that checks for Docker base image updates. Leverages skopeo and jq.
Readme 43 KiB
Languages
Shell 100%