Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5f3f59b7ae | |||
| 6233dfd73f | |||
| 2fd88169dc | |||
| 67a4e4568d | |||
| 3784a205a1 | |||
| bea7edb0d3 |
@@ -13,21 +13,29 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Log in to Docker Registry
|
- name: Log in to Docker Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ secrets.GIT_HOST }}
|
registry: git.cashew.network
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.GIT_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.GIT_PASSWORD }}
|
||||||
|
|
||||||
- name: Extract metadata
|
- name: Extract metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ secrets.GIT_HOST }}/${{ github.repository }}
|
images: git.cashew.network/${{ github.repository }}
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
@@ -41,6 +49,6 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=registry,ref=${{ secrets.GIT_HOST }}/${{ github.repository }}:buildcache
|
cache-from: type=registry,ref=git.cashew.network/${{ github.repository }}:buildcache
|
||||||
cache-to: type=registry,ref=${{ secrets.GIT_HOST }}/${{ github.repository }}:buildcache,mode=max
|
cache-to: type=registry,ref=git.cashew.network/${{ github.repository }}:buildcache,mode=max
|
||||||
|
|
||||||
+4
-3
@@ -10,8 +10,9 @@ COPY modpack/ /server/
|
|||||||
# Copy configuration files
|
# Copy configuration files
|
||||||
COPY configuration/ /server/
|
COPY configuration/ /server/
|
||||||
|
|
||||||
# Make run.sh executable
|
# Make run.sh executable (check if it exists first)
|
||||||
RUN chmod +x run.sh
|
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 the default Minecraft port (25565)
|
||||||
EXPOSE 25565
|
EXPOSE 25565
|
||||||
@@ -20,4 +21,4 @@ EXPOSE 25565
|
|||||||
EXPOSE 25575
|
EXPOSE 25575
|
||||||
|
|
||||||
# Start the server using run.sh
|
# Start the server using run.sh
|
||||||
ENTRYPOINT ["/server/run.sh"]
|
ENTRYPOINT ["./run.sh"]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
ironveil:
|
ironveil:
|
||||||
image: ${{ secrets.GIT_HOST }}/${{ github.repository }}:latest
|
image: git.cashew.network/zardzul/minecraft-server-ironveil:latest
|
||||||
container_name: ironveil
|
container_name: ironveil
|
||||||
volumes:
|
volumes:
|
||||||
- ./world:/server/world
|
- ./world:/server/world
|
||||||
|
|||||||
Reference in New Issue
Block a user