Skip to content

Commit

Permalink
Move to using GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm516 committed Sep 13, 2023
1 parent fc91f04 commit 3cc31d5
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 17 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-pterodactyl-geyser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build pterodactyl-geyser

on:
workflow_dispatch:
push:
branches:
- 'master'
paths:
- 'pterodactyl-geyser/**'
- '!pterodactyl-geyser/README.md'

env:
DOCKER_OWNER: ${{ github.repository_owner }}
DOCKER_CONTAINER: pterodactyl-geyser

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Fix Docker environment variables
run: |
# Make lowercase
echo "DOCKER_OWNER=$(echo $DOCKER_OWNER | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV
echo "DOCKER_CONTAINER=$(echo $DOCKER_CONTAINER | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV
- name: Build the Docker image
run: |
docker build $DOCKER_CONTAINER/ --tag $DOCKER_CONTAINER:latest
docker tag $DOCKER_CONTAINER:latest ghcr.io/$DOCKER_OWNER/$DOCKER_CONTAINER:latest
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Push to GHCR
run: |
docker push ghcr.io/$DOCKER_OWNER/$DOCKER_CONTAINER:latest
6 changes: 3 additions & 3 deletions README.MD → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ This repo contains the eggs for GeyserMC and the docker images for auto update s
## Geyser
### Geyser: Standalone
* Egg: `egg-geyser-m-c.json`
* Container: [`docker-geyser`](https://github.com/GeyserMC/pterodactyl-stuff/tree/docker-geyser)
* Container: [`docker-geyser`](https://github.com/GeyserMC/pterodactyl-stuff/pkgs/container/pterodactyl-geyser)

### Geyser: Spigot + [PaperMC](https://papermc.io/)
* Egg: `egg-paper--geyser--floodgate.json`

### Geyser: Bungee + [Waterfall](https://papermc.io/)
* Egg: `egg-waterfall--geyser--floodgate.json`

## GeyserConnect
### Geyser: Standalone + GeyserConnect
* Egg: `egg-geyser-connect.json`
* Container: [`docker-geyserconnect`](https://github.com/GeyserMC/pterodactyl-stuff/tree/docker-geyserconnect)
* Container: Uses the geyser container and loads the extension in
2 changes: 1 addition & 1 deletion egg-geyser-connect.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"description": "GeyserConnect is an easy way for Bedrock Edition clients to connect to any Java Edition servers without having to run anything.",
"features": null,
"docker_images": {
"quay.io\/geysermc\/pterodactyl-stuff:docker-geyser": "quay.io\/geysermc\/pterodactyl-stuff:docker-geyser"
"ghcr.io\/geysermc\/pterodactyl-geyser:latest": "ghcr.io\/geysermc\/pterodactyl-geyser:latest"
},
"file_denylist": [],
"startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}",
Expand Down
2 changes: 1 addition & 1 deletion egg-geyser-m-c.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"description": "Geyser is a bridge between Minecraft: Bedrock Edition and Minecraft: Java Edition, closing the gap from those wanting to play true cross-platform.",
"features": null,
"docker_images": {
"quay.io\/geysermc\/pterodactyl-stuff:docker-geyser": "quay.io\/geysermc\/pterodactyl-stuff:docker-geyser"
"ghcr.io\/geysermc\/pterodactyl-geyser:latest": "ghcr.io\/geysermc\/pterodactyl-geyser:latest"
},
"file_denylist": [],
"startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}",
Expand Down
4 changes: 1 addition & 3 deletions egg-paper--geyser--floodgate.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
],
"docker_images": {
"ghcr.io\/pterodactyl\/yolks:java_17": "ghcr.io\/pterodactyl\/yolks:java_17",
"ghcr.io\/pterodactyl\/yolks:java_16": "ghcr.io\/pterodactyl\/yolks:java_16",
"quay.io\/pterodactyl\/yolks:java_11": "quay.io\/pterodactyl\/yolks:java_11",
"quay.io\/pterodactyl\/yolks:java_8": "quay.io\/pterodactyl\/yolks:java_8"
"ghcr.io\/pterodactyl\/yolks:java_16": "ghcr.io\/pterodactyl\/yolks:java_16"
},
"file_denylist": [],
"startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -Dterminal.jline=false -Dterminal.ansi=true -DgeyserUdpPort={{GEYSER_PORT}} -jar {{SERVER_JARFILE}}",
Expand Down
4 changes: 1 addition & 3 deletions egg-velocity--geyser--floodgate.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"features": null,
"docker_images": {
"ghcr.io\/pterodactyl\/yolks:java_17": "ghcr.io\/pterodactyl\/yolks:java_17",
"ghcr.io\/pterodactyl\/yolks:java_16": "ghcr.io\/pterodactyl\/yolks:java_16",
"quay.io\/pterodactyl\/yolks:java_11": "quay.io\/pterodactyl\/yolks:java_11",
"quay.io\/pterodactyl\/yolks:java_8": "quay.io\/pterodactyl\/yolks:java_8"
"ghcr.io\/pterodactyl\/yolks:java_16": "ghcr.io\/pterodactyl\/yolks:java_16"
},
"file_denylist": [],
"startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -DgeyserUdpPort={{GEYSER_PORT}} -jar {{SERVER_JARFILE}}",
Expand Down
4 changes: 1 addition & 3 deletions egg-velocity--geyser.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"features": null,
"docker_images": {
"ghcr.io\/pterodactyl\/yolks:java_17": "ghcr.io\/pterodactyl\/yolks:java_17",
"ghcr.io\/pterodactyl\/yolks:java_16": "ghcr.io\/pterodactyl\/yolks:java_16",
"quay.io\/pterodactyl\/yolks:java_11": "quay.io\/pterodactyl\/yolks:java_11",
"quay.io\/pterodactyl\/yolks:java_8": "quay.io\/pterodactyl\/yolks:java_8"
"ghcr.io\/pterodactyl\/yolks:java_16": "ghcr.io\/pterodactyl\/yolks:java_16"
},
"file_denylist": [],
"startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -DgeyserUdpPort={{GEYSER_PORT}} -jar {{SERVER_JARFILE}}",
Expand Down
4 changes: 1 addition & 3 deletions egg-waterfall--geyser--floodgate.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"features": null,
"docker_images": {
"ghcr.io\/pterodactyl\/yolks:java_17": "ghcr.io\/pterodactyl\/yolks:java_17",
"ghcr.io\/pterodactyl\/yolks:java_16": "ghcr.io\/pterodactyl\/yolks:java_16",
"quay.io\/pterodactyl\/yolks:java_11": "quay.io\/pterodactyl\/yolks:java_11",
"quay.io\/pterodactyl\/yolks:java_8": "quay.io\/pterodactyl\/yolks:java_8"
"ghcr.io\/pterodactyl\/yolks:java_16": "ghcr.io\/pterodactyl\/yolks:java_16"
},
"file_denylist": [],
"startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -DgeyserUdpPort={{GEYSER_PORT}} -jar {{SERVER_JARFILE}}",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3cc31d5

Please sign in to comment.