From 17a17e78d894769755750cba791161dec0712112 Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Thu, 18 Jul 2024 10:48:01 +0700 Subject: [PATCH] feat: Layered devtools image --- .github/workflows/build-docker.yml | 28 ++++++++++++++++++++++++++++ dockerfiles/devtools.dockerfile | 5 +++++ 2 files changed, 33 insertions(+) create mode 100644 dockerfiles/devtools.dockerfile diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 5f9815ac..de7eaeb6 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -148,5 +148,33 @@ jobs: # also tag as latest buildah tag $MANIFEST $MANIFEST:latest || : buildah manifest push --all --format v2s2 $MANIFEST docker://$MANIFEST:$RELEASE + + docker-layer: + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + dockerfile: + - dockerfiles/devtools.dockerfile + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Build images + uses: docker/build-push-action@v6 + with: + context: . + file: ${{ matrix.dockerfile }} + platforms: linux/amd64,linux/arm64 + push: false + tags: | + ghcr.io/ultramarine-linux/ultramarine-devtools:40 + ghcr.io/ultramarine-linux/ultramarine-devtools:latest + args: | + RELEASE=40 + #### LIVE ISO #### diff --git a/dockerfiles/devtools.dockerfile b/dockerfiles/devtools.dockerfile new file mode 100644 index 00000000..5ccae70d --- /dev/null +++ b/dockerfiles/devtools.dockerfile @@ -0,0 +1,5 @@ +ARG RELEASE + +FROM ghcr.io/ultramarine-linux/ultramarine:${RELEASE} + +RUN dnf install -y @development-tools