Compare commits
3 Commits
ec7c4b2b65
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 116de4f9f1 | |||
| 9771afebb0 | |||
| 23516993e5 |
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,7 +3,7 @@
|
|||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk --update add sudo python3 openssl ca-certificates openssh-client rsync && \
|
RUN apk --update add sudo python3 git openssl ca-certificates openssh-client rsync && \
|
||||||
apk --update add --virtual build-dependencies \
|
apk --update add --virtual build-dependencies \
|
||||||
python3-dev libffi-dev openssl-dev build-base \
|
python3-dev libffi-dev openssl-dev build-base \
|
||||||
ansible py3-ansible-lint && \
|
ansible py3-ansible-lint && \
|
||||||
|
|||||||
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
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
FROM gitea/runner-images:ubuntu-latest
|
FROM gitea/runner-images:ubuntu-latest
|
||||||
RUN apt-get update && \
|
RUN wget https://github.com/gohugoio/hugo/releases/download/v0.135.0/hugo_0.135.0_linux-amd64.deb && \
|
||||||
apt-get install -y --no-install-recommends hugo && \
|
apt-get install -y ./hugo_0.135.0_linux-amd64.deb && \
|
||||||
rm -rf var/lib/{apt,dpkg,cache,log}/
|
rm -rf var/lib/{apt,dpkg,cache,log} hugo_0.135.0_linux-arm64.deb
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user