Skip to content

Commit

Permalink
add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
freggy committed May 9, 2021
1 parent 4e851c0 commit 5894e45
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.envrc
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ RUN apt install -y git
RUN apt install -y maven
RUN git config --global user.email "machine@cow.network"
RUN git config --global user.name "udder-machine"

RUN git submodule update --init --recursive --depth 50

RUN git submodule update --init --recursive --depth 100
RUN ./Tuinity/tuinity jar
RUN java -jar Tuinity/tuinity-paperclip.jar

Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
Tuinity Docker
==============

Dockerize Tuinity server.
Dockerized Tuinity server.

Build will be triggered when tagging this repository. The tag should look like `<minecraft-version>+<tuinity-commit-sha>` e.g `1.16.5+b12d0cce`.
We will always use the last 8 digits of the commit sha from the Tuinity build.

Since Docker does not support having `+` in the image name, the resulting image can pulled from `ghcr.io/cownetwork/tuinity:<minecraft-version>-<build>` e.g `ghcr.io/cownetwork/tuinity:1.16.5-b12d0cce`.

Building
--------

Just checkout the repository and run `./build.sh`. You need to provide the environment variables `$GHCR_TOKEN` and `$GHCR_USER` so `docker login` can succeed.


Future things
-------------

Expand Down
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
docker login ghcr.io -p $GHCR_TOKEN -u $GHCR_USER
docker build -t ghcr.io/cownetwork/tuinity:$1 .
docker push ghcr.io/cownetwork/tuinity:$1

0 comments on commit 5894e45

Please sign in to comment.