Compare commits

...

15 Commits

Author SHA1 Message Date
Cleo d0820de986 Update docker compose to use latest built image 2026-07-12 17:32:43 +02:00
Cleo 53c6d21633 Update README.md 2026-07-12 17:30:30 +02:00
Cleo d34e41db30 try fixing docker build workflow again
Build and Push Docker Image / build (release) Successful in 1m18s
2026-07-12 17:18:11 +02:00
Cleo 067e0f7009 try fixing docker build workflow
Build and Push Docker Image / build (release) Failing after 12s
2026-07-12 17:12:25 +02:00
Cleo 184b4750f5 create workflow to build image on release
Build and Push Docker Image / build (release) Failing after 1m1s
2026-07-01 22:34:16 +02:00
Cleo b6c405704c add .env file 2026-06-11 22:31:15 +02:00
Cleo a8ed7e1432 remove env var for server password 2026-06-11 22:18:40 +02:00
Cleo b8230c0c4a change env var name to match server argument 2026-06-11 22:18:26 +02:00
Cleo 8969c9aa32 allow setting host and password parameters with env vars 2026-06-11 22:17:09 +02:00
Cleo 24bc1c6f03 remove config file mount 2026-06-11 22:16:26 +02:00
Cleo 12063e2a8e change server volume to mount the host.yaml config instead 2026-06-11 21:59:16 +02:00
Cleo 061b1a8a1f add server volume 2026-06-11 21:49:35 +02:00
Cleo 50555b8844 fix failing build when the archive has errors 2026-06-09 20:45:48 +02:00
Cleo d1ec15eb46 add port to compose and readme 2026-06-09 19:15:20 +02:00
Cleo a958bb7e0e fix volume and env var definition 2026-06-08 18:30:19 +02:00
5 changed files with 65 additions and 6 deletions
+44
View File
@@ -0,0 +1,44 @@
name: Build and Push Docker Image
on:
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to Registry
uses: docker/login-action@v2
with:
registry: gitea.innovativename.xyz
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build Docker Image
env:
RELEASE_TAG: ${{ github.ref_name }}
SHORT_HASH: ${{ github.sha }}
USER_NAME: cleo
run: |
# Build the image with the commit hash tag
docker build --build-arg BUILD_IDENTIFIER=${SHORT_HASH:0:5} -t gitea.innovativename.xyz/${USER_NAME}/archipelago-server-docker:${RELEASE_TAG} .
# Tag the same image as "latest"
docker tag gitea.innovativename.xyz/${USER_NAME}/archipelago-server-docker:${RELEASE_TAG} gitea.innovativename.xyz/${USER_NAME}/archipelago-server-docker:latest
- name: Push Docker Images
env:
RELEASE_TAG: ${{ github.ref_name }}
SHORT_HASH: ${{ github.sha }}
USER_NAME: cleo
run: |
docker push gitea.innovativename.xyz/${USER_NAME}/archipelago-server-docker:${RELEASE_TAG}
docker push gitea.innovativename.xyz/${USER_NAME}/archipelago-server-docker:latest
- name: Log out from registry
if: always()
run: docker logout gitea.innovativename.xyz
+1 -1
View File
@@ -17,7 +17,7 @@ RUN set -x \
p7zip-full \ p7zip-full \
&& cd ${TMPDIR} \ && cd ${TMPDIR} \
&& 7z x Archipelago.tar.gz \ && 7z x Archipelago.tar.gz \
&& 7z x *.tar \ && 7z x *.tar || true \
&& mkdir ${SERVERDIR} \ && mkdir ${SERVERDIR} \
&& mkdir ${SAVEDIR} \ && mkdir ${SAVEDIR} \
&& mv Archipelago/ArchipelagoServer ${SERVERDIR} \ && mv Archipelago/ArchipelagoServer ${SERVERDIR} \
+5
View File
@@ -1,8 +1,13 @@
A Dockerfile to use the Archipelago through Docker.<br> A Dockerfile to use the Archipelago through Docker.<br>
Note: The save file needs to be created somewhere else and then put into the mounted volume before starting the server. Note: The save file needs to be created somewhere else and then put into the mounted volume before starting the server.
### Port
- The server port is set to `38281` and needs to be exposed for the server to be reachable
### Volumes: ### Volumes:
- `/home/archipelago/saves` -> Directory to put the save files into - `/home/archipelago/saves` -> Directory to put the save files into
### Env Vars: ### Env Vars:
- `SERVERPASSWORD` -> The password needed to connect to the server - `SERVERPASSWORD` -> The password needed to connect to the server
- `HOST` -> (optional) The host that the server is supposed to be reachable from
- `PASSWORD` -> (optional) The password needed to remotely execute admin commands
+6 -3
View File
@@ -1,7 +1,10 @@
services: services:
server: server:
build: ./ image: gitea.innovativename.xyz/cleo/archipelago-server-docker:latest
container_name: archipelago_server
ports:
- 38281:38281
volumes: volumes:
/srv/archipelago/saves:/home/archipelago/saves - /path/to/saves:/home/archipelago/saves
environment: environment:
SERVERPASSWORD=c2bdef1904cc - SERVERPASSWORD=change_me
+8 -1
View File
@@ -15,7 +15,14 @@ fi
echo "Using savefile ${savefile}" echo "Using savefile ${savefile}"
./ArchipelagoServer ${savefile} --port 38281 --password ${SERVERPASSWORD} cmd="./ArchipelagoServer ${savefile} --port 38281 --password ${SERVERPASSWORD}"
if [[ -n "$HOST" ]]; then
cmd="${cmd} --host ${HOST}"
fi
if [[ -n "$PASSWORD" ]]; then
cmd="${cmd} --password ${PASSWORD}"
fi
$cmd
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
echo "Started Archipelago Server" echo "Started Archipelago Server"