Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ebbec2d238 | |||
| 4f3fe4ed5a | |||
| 155b623901 | |||
| f704208500 | |||
| ec45109bf0 | |||
| 5f3f59b7ae | |||
| 6233dfd73f | |||
| 2fd88169dc | |||
| 67a4e4568d | |||
| 3784a205a1 | |||
| bea7edb0d3 |
@@ -12,15 +12,14 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Copy docker-compose.yml to server
|
- name: Copy files to server
|
||||||
uses: appleboy/scp-action@v0.1.7
|
uses: appleboy/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.HOST }}
|
host: ${{ secrets.HOST }}
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
key: ${{ secrets.KEY }}
|
key: ${{ secrets.KEY }}
|
||||||
source: "compose-file/docker-compose.yml"
|
source: "configuration,docker-compose.yml,Dockerfile"
|
||||||
target: "/home/${{ secrets.USERNAME }}/minecraft-server-ironveil"
|
target: "/home/${{ secrets.USERNAME }}/minecraft-server-ironveil"
|
||||||
strip_components: 1
|
|
||||||
|
|
||||||
- name: Deploy and restart container
|
- name: Deploy and restart container
|
||||||
uses: appleboy/ssh-action@v1.2.5
|
uses: appleboy/ssh-action@v1.2.5
|
||||||
@@ -31,4 +30,4 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
cd minecraft-server-ironveil
|
cd minecraft-server-ironveil
|
||||||
docker compose pull
|
docker compose pull
|
||||||
docker compose up -d --force-recreate
|
docker compose up -d --force-recreate --build
|
||||||
|
|||||||
@@ -1,46 +0,0 @@
|
|||||||
name: Build and Publish Docker Image
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Log in to Docker Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ${{ secrets.GIT_HOST }}
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Extract metadata
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
images: ${{ secrets.GIT_HOST }}/${{ github.repository }}
|
|
||||||
tags: |
|
|
||||||
type=semver,pattern={{version}}
|
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
|
||||||
type=semver,pattern={{major}}
|
|
||||||
type=raw,value=latest
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
cache-from: type=registry,ref=${{ secrets.GIT_HOST }}/${{ github.repository }}:buildcache
|
|
||||||
cache-to: type=registry,ref=${{ secrets.GIT_HOST }}/${{ github.repository }}:buildcache,mode=max
|
|
||||||
|
|
||||||
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
.env
|
.env
|
||||||
world
|
world
|
||||||
modpack
|
modpack*
|
||||||
|
Dockerfile
|
||||||
+6
-6
@@ -1,17 +1,17 @@
|
|||||||
# Use an official OpenJDK 17 image
|
# Use an official OpenJDK 21 image
|
||||||
FROM eclipse-temurin:17-jdk
|
FROM eclipse-temurin:21-jdk
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /server
|
WORKDIR /server
|
||||||
|
|
||||||
# Copy modpack files
|
# Copy modpack files
|
||||||
COPY modpack/ /server/
|
COPY modpack/. .
|
||||||
|
|
||||||
# Copy configuration files
|
# Copy configuration files
|
||||||
COPY configuration/ /server/
|
COPY configuration/. .
|
||||||
|
|
||||||
# Make run.sh executable
|
# Make run.sh executable (check if it exists first)
|
||||||
RUN chmod +x run.sh
|
RUN chmod +x /server/run.sh
|
||||||
|
|
||||||
# Expose the default Minecraft port (25565)
|
# Expose the default Minecraft port (25565)
|
||||||
EXPOSE 25565
|
EXPOSE 25565
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
@@ -1,4 +1,38 @@
|
|||||||
[
|
[
|
||||||
"player1",
|
{
|
||||||
"player2"
|
"name":"zardzul",
|
||||||
]
|
"uuid":"9f0f315c-880d-48aa-a786-66ba83dcfb28"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"CreativeClaws",
|
||||||
|
"uuid":"173c71f5-8de7-4161-bedf-18350b9a7306"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"Mango_Rain",
|
||||||
|
"uuid":"917a3cfd-4470-452b-82da-6af9c35832ff"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"CerberusGK",
|
||||||
|
"uuid":"92676552-9c9c-4996-ab8f-d2344ec2068a"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"c_thijsen",
|
||||||
|
"uuid":"6123dc36-9374-4111-b021-8c04507d380a"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"Bongo_catto",
|
||||||
|
"uuid":"549e6c7b-8cfc-4a59-ad9d-6bff338932a9"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"Underkun",
|
||||||
|
"uuid":"69132e65-7ffc-4fa2-b8c2-0610eacf36ad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"PenguinLotje",
|
||||||
|
"uuid":"ac06c59b-9f89-4870-889a-3c183b9e6a11"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"B4nanaJuice",
|
||||||
|
"uuid":"340a9ec8-fe7a-4209-a9e4-cd5d5ddbf128"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
services:
|
services:
|
||||||
ironveil:
|
ironveil:
|
||||||
image: ${{ secrets.GIT_HOST }}/${{ github.repository }}:latest
|
build: .
|
||||||
container_name: ironveil
|
container_name: ironveil
|
||||||
volumes:
|
volumes:
|
||||||
- ./world:/server/world
|
- ./world:/server/world
|
||||||
ports:
|
ports:
|
||||||
- "25565:25565"
|
- "5101:25565"
|
||||||
- "25575:25575"
|
- "5201:25575"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
Reference in New Issue
Block a user