7 Commits

Author SHA1 Message Date
c37b1f456a bump 2018-09-13 13:57:29 +02:00
1591d6f16f correct url 2018-09-13 11:32:16 +02:00
eb2b606295 use v0.1 2018-09-13 11:23:29 +02:00
e968a9b610 ext cache 2018-09-12 20:38:39 +02:00
e08fac47fd shared cache 2018-09-12 18:56:47 +02:00
2109635929 push public image 2018-09-12 18:13:00 +02:00
59984ec3bb expose udp ports 2018-09-12 18:09:01 +02:00
5 changed files with 38 additions and 64 deletions

View File

@@ -1,6 +1,42 @@
pipeline:
dl-cache:
image: repo.shimun.net/drone-plugins/davfile
url: https://seaf.shimun.net/seafdav/Drone/cache/
secrets: ["docker_username", "docker_password"]
file: ${DRONE_REPO_NAME}.tar.gz
secrets: ["dav_username", "dav_password"]
ex-cache:
image: repo.shimun.net/drone-plugins/tar
dest: /drone/
file: ${DRONE_REPO_NAME}.tar.gz
quiet: true
docker:
image: plugins/docker
repo: repo.shimun.net/shimun/sauerbraten
registry: repo.shimun.net
secrets: ["docker_username", "docker_password"]
storage_path: /drone/docker
use_cache: true
mk-cache:
image: repo.shimun.net/drone-plugins/tar
dest: ${DRONE_REPO_NAME}.tar.gz
file: /drone/docker
quiet: true
up-cache:
image: repo.shimun.net/drone-plugins/davfile
url: https://seaf.shimun.net/seafdav/Drone/cache/
upload: true
file: ${DRONE_REPO_NAME}.tar.gz
secrets: ["dav_username", "dav_password"]
group: fin
docker-p:
image: plugins/docker
repo: repo.shimun.net/sauerbraten
registry: repo.shimun.net
secrets: ["docker_username", "docker_password"]
use_cache: true
storage_path: /drone/docker
squash: true
when:
event: tag
group: fin

View File

@@ -11,8 +11,8 @@ RUN apk add --no-cache $BUILD_DEPS && cd /usr/src/sauerbraten && \
cp /usr/src/sauerbraten/bin_unix/native_server /usr/bin/sauerbraten-server && \
apk del --no-cache $BUILD_DEPS && rm -rf /usr/src/sauerbraten
EXPOSE 28785 28786
EXPOSE 28785 28786 28785/udp 28786/udp
ENTRYPOINT /usr/bin/sauerbraten-server
CMD ["-d1", "-c18", "-g2"]

View File

@@ -1,52 +0,0 @@
{
"app-id": "org.sauerbraten.Cube2",
"runtime": "org.kde.Platform",
"runtime-version": "5.9",
"sdk": "org.kde.Sdk",
"command": "sauerbraten",
"modules": [
{
"name": "game",
"sources": [
{
"type": "git",
"path": "src",
"commit": "17d79ca96f8ff9848c527979b90ec468f662f8c2"
}
],
"buildsystem": "simple",
"build-commands": [
"make -C src install"
]
},
{
"name": "share",
"sources": [
{
"type": "file",
"url": "http://quadropolis.us/files/sauerbratenicons.png",
"sha256": "4fcd5c0d46f124e64cf92346f32cfc03fe6b239bca098e7909c84f1a58caa71e"
},
{
"type": "dir",
"path": "share/applications"
}
],
"buildsystem": "simple",
"build-commands":[
"#mkdir -p files/share/applications",
"#install -D launcher.desktop sauerbratenicons.png files/share/applications/",
"#bash -c '(>&2 ls /app/ )'"
]
}
],
"rename-icon": "sauerbratenicons",
"rename-desktop-file": "launcher.desktop",
"finish-args": [
"--socket=x11",
"--socket=wayland",
"--share=network",
"--socket=pulseaudio"
]
}

View File

@@ -1,3 +0,0 @@
#!/bin/sh
git submodule update --init --recursive

View File

@@ -1,7 +0,0 @@
[Desktop Entry]
Name=Sauerbraten
Exec=sauerbraten
Comment=Cube2 Sauerbraten
Icon=sauerbraten
Type=Application
Categories=Games;