Building a test image for minecraft
This commit is contained in:
parent
9771afebb0
commit
116de4f9f1
29
.gitea/workflows/minecraft-builder.yml
Normal file
29
.gitea/workflows/minecraft-builder.yml
Normal 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
3
minecraft/Dockerfile
Normal file
@ -0,0 +1,3 @@
|
||||
# Super basic test thing
|
||||
FROM itzg/minecraft-server
|
||||
ENV EULA=TRUE
|
Loading…
Reference in New Issue
Block a user