From 58093b91eec41e8e6e0cb448d580d5c63eaaf325 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Mon, 8 Jan 2024 21:45:36 +0000 Subject: [PATCH] Add Minecraft image --- .gitea/workflows/build.yaml | 19 +++++++++++++++++++ craftblock.Containerfile | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 craftblock.Containerfile diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 9a02099..013ac61 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -35,3 +35,22 @@ jobs: registry: git.nul.ie username: dev password: ${{ secrets.PUSH_TOKEN }} + + - name: Build Minecraft + id: build + uses: redhat-actions/buildah-build@v2 + env: + BUILDAH_ISOLATION: chroot + with: + image: dev/craftblock + tags: 2024.1.0-java17-alpine + containerfiles: | + craftblock.Containerfile + - name: Push Minecraft + uses: redhat-actions/push-to-registry@v2 + with: + image: ${{ steps.build.outputs.image }} + tags: ${{ steps.build.outputs.tags }} + registry: git.nul.ie + username: dev + password: ${{ secrets.PUSH_TOKEN }} diff --git a/craftblock.Containerfile b/craftblock.Containerfile new file mode 100644 index 0000000..380a217 --- /dev/null +++ b/craftblock.Containerfile @@ -0,0 +1,2 @@ +FROM ghcr.io/itzg/minecraft-server:2024.1.0-java17-alpine +RUN apk add --no-cache -U git-lfs