Building a test image for minecraft
All checks were successful
Build Minecraft Image / build-minecraft-image (push) Successful in 7s
Build Minecraft Image / push-to-docker-hub (push) Successful in 9s

This commit is contained in:
shockrah 2024-12-10 17:00:59 -08:00
parent 9771afebb0
commit 116de4f9f1
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,29 @@
name: Build Minecraft Image
on:
push:
branches:
- master
paths:
- minecraft/*
env:
image: shockrah/minecraft
jobs:
build-minecraft-image:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build docker image
run: docker build -t ${{ env.image }} ${{ gitea.workspace }}/website
push-to-docker-hub:
needs: build-hugo-image
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
run: |
echo "${{ secrets.dockerhub_pass }}" | \
docker login -u ${{ secrets.dockerhub_user }} --password-stdin
- name: Push Docker image from previous job
run: docker push ${{ env.image }}

3
minecraft/Dockerfile Normal file
View File

@ -0,0 +1,3 @@
# Super basic test thing
FROM itzg/minecraft-server
ENV EULA=TRUE