10 Commits

Author SHA1 Message Date
zardzul 5f3f59b7ae attemped fix
Build and Publish Docker Image / build (push) Successful in 2m14s
Deploy to Production / deploy-to-production (push) Failing after 24s
2026-02-13 11:28:21 +01:00
zardzul 6233dfd73f build stage
Build and Publish Docker Image / build (push) Failing after 1m20s
2026-02-13 11:15:23 +01:00
zardzul 2fd88169dc update modpack step
Build and Publish Docker Image / build (push) Failing after 11s
2026-02-13 11:13:04 +01:00
zardzul 67a4e4568d change git host
Build and Publish Docker Image / build (push) Failing after 30s
2026-02-13 10:53:05 +01:00
zardzul 3784a205a1 change secrets names
Build and Publish Docker Image / build (push) Failing after 21s
2026-02-13 10:49:23 +01:00
zardzul bea7edb0d3 Merge pull request 'fix docker image building' (#3) from feature/docker-image-build into main
Build and Publish Docker Image / build (push) Failing after 1m29s
Reviewed-on: #3
2026-02-13 09:43:51 +00:00
zardzul 6abee7cb51 fix docker image building 2026-02-13 10:43:32 +01:00
zardzul b80687f67d Merge pull request 'revamp build' (#2) from feature/new-config into main
Deploy to Production / deploy-to-production (push) Has been cancelled
Build and Publish Docker Image / build-and-push (push) Failing after 36s
Restart Server / restart-server (push) Failing after 22s
Reviewed-on: #2
2026-02-12 10:18:18 +00:00
zardzul 8c3c1c4096 Merge branch 'main' into feature/new-config 2026-02-12 10:18:08 +00:00
zardzul 81bcc049e0 revamp build 2026-02-12 11:16:24 +01:00
7 changed files with 58 additions and 47 deletions
+12 -24
View File
@@ -11,36 +11,24 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: main
path: .
- name: Transfer files
uses: burnett01/rsync-deployments@8.0.4
- name: Copy docker-compose.yml to server
uses: appleboy/scp-action@v0.1.7
with:
switches: -azvr --delete --exclude=".gitignore" --exclude=".git" --exclude=".gitea" --exclude="data" --exclude=".env"
path: .
remote_path: /home/${{ secrets.USERNAME }}/minecraft-server-ironveil
remote_host: ${{ secrets.HOST }}
remote_user: ${{ secrets.USERNAME }}
remote_key: ${{ secrets.KEY }}
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
source: "compose-file/docker-compose.yml"
target: "/home/${{ secrets.USERNAME }}/minecraft-server-ironveil"
strip_components: 1
- name: Stop container
- name: Deploy and restart container
uses: appleboy/ssh-action@v1.2.5
with:
host: ${{ secrets.host }}
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
cd minecraft-server-ironveil
docker compose down
- name: Start container
uses: appleboy/ssh-action@v1.2.5
with:
host: ${{ secrets.host }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
cd minecraft-server-ironveil
docker compose up -d
docker compose pull
docker compose up -d --force-recreate
+37 -12
View File
@@ -2,28 +2,53 @@ name: Build and Publish Docker Image
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
branches:
- main
jobs:
build-and-push:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download modpack from release
run: |
curl -L -H "Authorization: token ${{ secrets.GIT_PASSWORD }}" \
-o modpack.zip \
"https://git.cashew.network/${{ github.repository }}/releases/download/modpack-latest/modpack.zip"
unzip -q modpack.zip -d modpack
rm modpack.zip
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
- name: Log in to Docker Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push image
registry: git.cashew.network
username: ${{ secrets.GIT_USERNAME }}
password: ${{ secrets.GIT_PASSWORD }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: git.cashew.network/${{ 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: ${{ secrets.DOCKER_USERNAME }}/ironveil:${{ github.ref_name }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=git.cashew.network/${{ github.repository }}:buildcache
cache-to: type=registry,ref=git.cashew.network/${{ github.repository }}:buildcache,mode=max
+8 -7
View File
@@ -4,14 +4,15 @@ FROM eclipse-temurin:17-jdk
# Set working directory
WORKDIR /server
# Copy server configuration files
COPY configuration/. .
# Copy modpack files
COPY modpack/ /server/
# Copy all modpack related files
COPY modpack/. .
# Copy configuration files
COPY configuration/ /server/
# Make run.sh executable
RUN chmod +x run.sh
# Make run.sh executable (check if it exists first)
RUN if [ -f run.sh ]; then chmod +x run.sh; fi && \
if [ -f /server/run.sh ]; then chmod +x /server/run.sh; fi
# Expose the default Minecraft port (25565)
EXPOSE 25565
@@ -20,4 +21,4 @@ EXPOSE 25565
EXPOSE 25575
# Start the server using run.sh
ENTRYPOINT ["/server/run.sh"]
ENTRYPOINT ["./run.sh"]
@@ -1,6 +1,6 @@
services:
ironveil:
image: ironveil:latest
image: git.cashew.network/zardzul/minecraft-server-ironveil:latest
container_name: ironveil
volumes:
- ./world:/server/world
-1
View File
@@ -1 +0,0 @@
{"operations":{"getModFileInfo":{"1250591,7575878":{"filename":"14ef06dc-1a65-4611-87d6-c61eea6c8b00.json","expiresAt":"2026-02-12T19:47:13.246183510Z"}},"searchModWithGameIdSlugClassId":{"432,over-stars,4471":{"filename":"3fa6caf4-40e9-4b41-91b0-6d44997753b0.json","expiresAt":"2026-02-10T20:47:13.225100126Z"}}}}
@@ -1 +0,0 @@
{"gameId":432,"fileName":"OS Serverpack v5.5.zip","gameVersions":["1.20.1","Forge"],"displayName":"OS Serverpack v5.5","sortableGameVersions":[{"gameVersionPadded":"0000000001.0000000020.0000000001","gameVersion":"1.20.1","gameVersionReleaseDate":"2023-06-12T14:26:38.477Z","gameVersionName":"1.20.1","gameVersionTypeId":75125},{"gameVersionPadded":"0","gameVersion":"","gameVersionReleaseDate":"2022-10-01T00:00:00Z","gameVersionName":"Forge","gameVersionTypeId":68441}],"downloadUrl":"https://edge.forgecdn.net/files/7575/878/OS%20Serverpack%20v5.5.zip","fileDate":"2026-02-04T16:40:45.800Z","exposeAsAlternative":null,"modId":1250591,"modules":[{"name":"mods","fingerprint":491038856},{"name":"scripts","fingerprint":2316932191},{"name":"run.bat","fingerprint":4191847801},{"name":"run.sh","fingerprint":3076618596},{"name":"user_jvm_args.txt","fingerprint":1298710358},{"name":"config","fingerprint":733434366},{"name":"global_packs","fingerprint":738911182},{"name":"kubejs","fingerprint":2552288896},{"name":"libraries","fingerprint":2766827340}],"dependencies":[],"fileFingerprint":2501413001,"releaseType":1,"hashes":[{"value":"718e65a9d3e5c2388ca899589f9b857537c68f3a","algo":1},{"value":"11e309d6a626309c3b5f279bc2f987f8","algo":2}],"parentProjectFileId":7566405,"alternateFileId":0,"id":7575878,"fileLength":792979618,"downloadCount":1,"serverPackFileId":null,"serverPack":false,"available":false}
File diff suppressed because one or more lines are too long