primeiro commit
This commit is contained in:
commit
d2f219880c
31
.gitea/workflows/build.yaml
Normal file
31
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
name: Build and Push Image
|
||||
on: [ push ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and push image
|
||||
runs-on: ubuntu-latest
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.aehoo.net
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/amd64
|
||||
tags: |
|
||||
git.aehoo.net/alphard/unmined:${{env.GITHUB_SHA}}
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM alpine:3.19
|
||||
RUN apk add --no-cache curl
|
||||
RUN curl -L https://unmined.net/download/unmined-cli-linux-x64-sc -o /root/unmined-cli.tar.gz
|
||||
RUN mkdir -p /opt/unmined
|
||||
RUN tar xvf /root/unmined-cli.tar.gz --strip-components=1 -C /opt/unmined
|
||||
RUN chown -R root.root /opt/unmined
|
||||
RUN rm -f /root/unmined-cli.tar.gz
|
||||
RUN apk del curl
|
||||
ENTRYPOINT ["/opt/unmined/unmined-cli","web","render","--world","/var/lib/minecraft/world","--dimension","overworld","--imageformat","webp","--output","/var/www/minecraft"]
|
Loading…
Reference in New Issue
Block a user