Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions containers/buildkit/Earthfile
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions containers/buildkit/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# buildkit

Aliased container image for Buildkit.

## Available Versions

<!-- VERSIONS_START -->

| Tag | Base Version |
| ----------------- | ------------------ |
| `buildx-stable-1` | buildx-stable-1 |

<!-- VERSIONS_END -->

## Usage

```bash
docker pull ghcr.io/expnt/containers/buildkit:<tag>
```
9 changes: 9 additions & 0 deletions containers/buildkit/versions.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading