Skip to content

Commit f09ef21

Browse files
committed
Merge remote-tracking branch 'upstream/master' into readme
2 parents 8c3200d + 2e5516b commit f09ef21

13 files changed

Lines changed: 54 additions & 28 deletions

File tree

.github/workflows/apps.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
uptime_kuma_2_changed:
3939
- 'apps/uptime-kuma-2/**'
4040
- 'scripts/apps/uptime-kuma-2/**'
41+
sinusbot_changed:
42+
- 'apps/sinusbot/**'
4143
base_changed:
4244
- 'base/**'
4345
- 'scripts/base/ampstart.sh'
@@ -48,7 +50,7 @@ jobs:
4850
set -euo pipefail
4951
# Default matrix when not a push: build all apps
5052
if [ "${{ github.event_name }}" != "push" ]; then
51-
echo 'apps_json=["postgresql","uptime-kuma-2"]' >> "$GITHUB_OUTPUT"
53+
echo 'apps_json=["postgresql","uptime-kuma-2","sinusbot"]' >> "$GITHUB_OUTPUT"
5254
exit 0
5355
fi
5456
@@ -61,6 +63,7 @@ jobs:
6163
apps=()
6264
if [ "${{ steps.filter.outputs.postgresql_changed || 'false' }}" = "true" ]; then apps+=('"postgresql"'); fi
6365
if [ "${{ steps.filter.outputs.uptime_kuma_2_changed || 'false' }}" = "true" ]; then apps+=('"uptime-kuma-2"'); fi
66+
if [ "${{ steps.filter.outputs.sinusbot_changed || 'false' }}" = "true" ]; then apps+=('"sinusbot"'); fi
6467
6568
if [ "${#apps[@]}" -eq 0 ]; then
6669
echo 'apps_json=[]' >> "$GITHUB_OUTPUT"
@@ -97,12 +100,12 @@ jobs:
97100
with:
98101
context: .
99102
file: ./apps/${{ matrix.app }}/Dockerfile
100-
platforms: linux/amd64,linux/arm64/v8
103+
platforms: ${{ matrix.app == 'sinusbot' && 'linux/amd64' || 'linux/amd64,linux/arm64/v8' }}
101104
push: true
102105
pull: true
103106
tags: cubecoders/ampbase:${{ matrix.app }}
104-
cache-from: type=registry,ref=cubecoders/ampbase:${{ matrix.app }}
105-
cache-to: type=inline
107+
cache-from: type=gha,scope=${{ github.workflow }}-${{ matrix.app }}
108+
cache-to: type=gha,mode=max,scope=${{ github.workflow }}-${{ matrix.app }}
106109
provenance: mode=max
107110
sbom: true
108111

.github/workflows/base.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ jobs:
4848
file: ./base/${{ matrix.base }}/Dockerfile
4949
platforms: linux/amd64,linux/arm64/v8
5050
push: true
51-
tags: |
52-
cubecoders/ampbase:${{ matrix.base }}
53-
cache-from: type=registry,ref=cubecoders/ampbase:${{ matrix.base }}
54-
cache-to: type=inline
51+
pull: true
52+
tags: cubecoders/ampbase:${{ matrix.base }}
53+
cache-from: type=gha,scope=${{ github.workflow }}-${{ matrix.base }}
54+
cache-to: type=gha,mode=max,scope=${{ github.workflow }}-${{ matrix.base }}
5555
provenance: mode=max
5656
sbom: true
5757

.github/workflows/java.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ jobs:
7272
push: true
7373
pull: true
7474
tags: cubecoders/ampbase:java-${{ matrix.java }}
75-
cache-from: type=registry,ref=cubecoders/ampbase:java-${{ matrix.java }}
76-
cache-to: type=inline
75+
cache-from: type=gha,scope=${{ github.workflow }}-${{ matrix.java }}
76+
cache-to: type=gha,mode=max,scope=${{ github.workflow }}-${{ matrix.java }}
7777
provenance: mode=max
7878
sbom: true
7979

.github/workflows/mono.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ jobs:
7272
push: true
7373
pull: true
7474
tags: cubecoders/ampbase:mono-${{ matrix.mono }}
75-
cache-from: type=registry,ref=cubecoders/ampbase:mono-${{ matrix.mono }}
76-
cache-to: type=inline
75+
cache-from: type=gha,scope=${{ github.workflow }}-${{ matrix.mono }}
76+
cache-to: type=gha,mode=max,scope=${{ github.workflow }}-${{ matrix.mono }}
7777
provenance: mode=max
7878
sbom: true
7979

.github/workflows/python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ jobs:
7878
push: true
7979
pull: true
8080
tags: cubecoders/ampbase:python-${{ matrix.python }}
81-
cache-from: type=registry,ref=cubecoders/ampbase:python-${{ matrix.python }}
82-
cache-to: type=inline
81+
cache-from: type=gha,scope=${{ github.workflow }}-${{ matrix.python }}
82+
cache-to: type=gha,mode=max,scope=${{ github.workflow }}-${{ matrix.python }}
8383
provenance: mode=max
8484
sbom: true
8585

.github/workflows/wine.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ jobs:
7171
push: true
7272
pull: true
7373
tags: cubecoders/ampbase:wine-common
74-
cache-from: type=registry,ref=cubecoders/ampbase:wine-common
75-
cache-to: type=inline
74+
cache-from: type=gha,scope=${{ github.workflow }}-common
75+
cache-to: type=gha,mode=max,scope=${{ github.workflow }}-common
7676
provenance: mode=max
7777
sbom: true
7878

@@ -111,9 +111,9 @@ jobs:
111111
pull: true
112112
tags: cubecoders/ampbase:wine-${{ matrix.version }}
113113
cache-from: |
114-
type=registry,ref=cubecoders/ampbase:wine-common
115-
type=registry,ref=cubecoders/ampbase:wine-${{ matrix.version }}
116-
cache-to: type=inline
114+
type=gha,scope=${{ github.workflow }}-common
115+
type=gha,scope=${{ github.workflow }}-${{ matrix.version }}
116+
cache-to: type=gha,mode=max,scope=${{ github.workflow }}-${{ matrix.version }}
117117
provenance: mode=max
118118
sbom: true
119119

apps/sinusbot/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ ENV DEBIAN_FRONTEND="noninteractive"
1010
# Install required packages
1111
RUN set -eux; \
1212
apt-get update; \
13+
# Purge PulseAudio libs from base image
14+
apt-get purge --auto-remove -y libpulse0 libpulse-mainloop-glib0; \
15+
\
1316
apt-get install -o APT::Keep-Downloaded-Packages="false" -y --no-install-recommends \
14-
x11vnc xvfb libxcursor1 ca-certificates curl bzip2 libnss3 libegl1 x11-xkb-utils libasound2t64 libpci3 libxslt1.1 libxkbcommon0 libxss1 libxcomposite1 libglib2.0-0t64 less; \
17+
ca-certificates bzip2 unzip curl python3 procps x11vnc xvfb libxcursor1 libnss3 \
18+
libegl1 libasound2t64 libglib2.0-0t64 libxcomposite-dev less jq libevent-2.1-7t64 \
19+
libxcb-xinerama0 liblcms2-2 libatomic1 libxcb-icccm4 libxcb-keysyms1 libxcb-randr0 \
20+
libxcb-render-util0 libxcb-shape0 libxcb-xkb1 libxkbcommon0 libxkbcommon-x11-0 libpci3 \
21+
libxslt1.1 libxcb-image0; \
1522
apt-get clean; \
1623
rm -rf /var/lib/apt/lists/*

base/debian-12/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN set -eux; \
1919
ca-certificates curl wget tar unzip xz-utils bzip2 \
2020
coreutils procps iproute2 iputils-ping socat jq git git-lfs gnupg tmux dbus \
2121
tini tzdata locales gosu \
22-
libssl3 libcurl4 libsqlite3-0 libzstd1 libsdl2-2.0-0 libsdl1.2-compat libfontconfig1 \
22+
libssl3 libcurl4 libsqlite3-0 libzstd1 libsdl2-2.0-0 libsdl1.2debian libfontconfig1 \
2323
# Required for Proton
2424
python3 \
2525
# Required for Core Keeper

base/debian/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN set -eux; \
1919
ca-certificates curl wget tar unzip xz-utils bzip2 \
2020
coreutils procps iproute2 iputils-ping socat jq git git-lfs gnupg tmux dbus \
2121
tini tzdata locales gosu \
22-
libssl3t64 libcurl4t64 libsqlite3-0 libzstd1 libsdl2-2.0-0 libsdl1.2-compat libfontconfig1 libicu76 \
22+
libssl3t64 libcurl4t64 libsqlite3-0 libzstd1 libsdl2-2.0-0 libsdl1.2debian libfontconfig1 libicu76 \
2323
# Required for Proton
2424
python3 \
2525
# Required for Core Keeper

base/ubuntu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN set -eux; \
1919
ca-certificates curl wget tar unzip xz-utils bzip2 \
2020
coreutils procps iproute2 iputils-ping socat jq git git-lfs gnupg tmux dbus \
2121
tini tzdata locales gosu \
22-
libssl3t64 libcurl4t64 libsqlite3-0 libzstd1 libsdl2-2.0-0 libsdl1.2-compat libfontconfig1 \
22+
libssl3t64 libcurl4t64 libsqlite3-0 libzstd1 libsdl2-2.0-0 libsdl1.2debian libfontconfig1 \
2323
# Required for Core Keeper
2424
xvfb xauth libxi6 \
2525
# Required for Valheim crossplay (and variously some others)

0 commit comments

Comments
 (0)