diff --git a/.gitea/workflows/minecraft-builder.yml b/.gitea/workflows/minecraft-builder.yml new file mode 100644 index 0000000..9cfbf73 --- /dev/null +++ b/.gitea/workflows/minecraft-builder.yml @@ -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 }} diff --git a/minecraft/Dockerfile b/minecraft/Dockerfile new file mode 100644 index 0000000..6488e08 --- /dev/null +++ b/minecraft/Dockerfile @@ -0,0 +1,3 @@ +# Super basic test thing +FROM itzg/minecraft-server +ENV EULA=TRUE \ No newline at end of file