Compare commits
13 Commits
45d64dba1b
...
0.6.7
| Author | SHA1 | Date | |
|---|---|---|---|
| d34e41db30 | |||
| 067e0f7009 | |||
| 184b4750f5 | |||
| b6c405704c | |||
| a8ed7e1432 | |||
| b8230c0c4a | |||
| 8969c9aa32 | |||
| 24bc1c6f03 | |||
| 12063e2a8e | |||
| 061b1a8a1f | |||
| 50555b8844 | |||
| d1ec15eb46 | |||
| a958bb7e0e |
@@ -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
@@ -17,7 +17,7 @@ RUN set -x \
|
||||
p7zip-full \
|
||||
&& cd ${TMPDIR} \
|
||||
&& 7z x Archipelago.tar.gz \
|
||||
&& 7z x *.tar \
|
||||
&& 7z x *.tar || true \
|
||||
&& mkdir ${SERVERDIR} \
|
||||
&& mkdir ${SAVEDIR} \
|
||||
&& mv Archipelago/ArchipelagoServer ${SERVERDIR} \
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
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.
|
||||
|
||||
### Port
|
||||
- The server port is set to `38281` and needs to be exposed for the server to be reachable
|
||||
|
||||
### Volumes:
|
||||
- `/home/archipelago/saves` -> Directory to put the save files into
|
||||
|
||||
|
||||
+4
-3
@@ -1,7 +1,8 @@
|
||||
services:
|
||||
server:
|
||||
build: ./
|
||||
ports:
|
||||
- 38281:38281
|
||||
volumes:
|
||||
/srv/archipelago/saves:/home/archipelago/saves
|
||||
environment:
|
||||
SERVERPASSWORD=c2bdef1904cc
|
||||
- /srv/archipelago/saves:/home/archipelago/saves
|
||||
env_file: .env
|
||||
|
||||
+8
-1
@@ -15,7 +15,14 @@ fi
|
||||
|
||||
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
|
||||
echo "Started Archipelago Server"
|
||||
|
||||
Reference in New Issue
Block a user