diff --git a/containers/buildkit/Earthfile b/containers/buildkit/Earthfile new file mode 100644 index 0000000..fec7f85 --- /dev/null +++ b/containers/buildkit/Earthfile @@ -0,0 +1,22 @@ +VERSION 0.8 +IMPORT .. AS common + +ARG --global BASE_VERSION +ARG --global TAG +ARG --global GITHUB_REPOSITORY_OWNER + +buildkit-base: + FROM docker.io/moby/buildkit:${BASE_VERSION} + DO common+ADD_LABELS + +validate: + FROM +buildkit-base + RUN --no-cache test -n "$BASE_VERSION" || (echo "BASE_VERSION is required" && exit 1) + +build: + BUILD +validate + FROM +buildkit-base + DO common+SAVE_IMAGE --IMAGE_NAME=buildkit --TAG=${TAG} --GITHUB_REPOSITORY_OWNER=${GITHUB_REPOSITORY_OWNER} + +build-multiplatform: + DO --pass-args common+BUILD_MULTIPLATFORM --TARGET=./buildkit+build diff --git a/containers/buildkit/README.md b/containers/buildkit/README.md new file mode 100644 index 0000000..087ceb7 --- /dev/null +++ b/containers/buildkit/README.md @@ -0,0 +1,19 @@ +# buildkit + +Aliased container image for Buildkit. + +## Available Versions + + + +| Tag | Base Version | +| ----------------- | ------------------ | +| `buildx-stable-1` | buildx-stable-1 | + + + +## Usage + +```bash +docker pull ghcr.io/expnt/containers/buildkit: +``` diff --git a/containers/buildkit/versions.yaml b/containers/buildkit/versions.yaml new file mode 100644 index 0000000..cde68da --- /dev/null +++ b/containers/buildkit/versions.yaml @@ -0,0 +1,9 @@ +image_name: buildkit +tag_pattern: "{base_version}" +versions: + - base_version: "buildx-stable-1" +watch: + - pattern: ^buildx-stable-(\d+)$ + source: docker.io/moby/buildkit + target: base_version + type: docker \ No newline at end of file