Merge commit '834581e4d813d56332e49c3849272142a8d15d28' into main

This commit is contained in:
Buster "Silver Eagle" Neece 2021-12-13 02:52:40 -06:00
commit 8f1f548896
No known key found for this signature in database
GPG Key ID: 9FC8B9E008872109
4 changed files with 22 additions and 10 deletions

View File

@ -183,7 +183,7 @@ jobs:
with:
context: .
push: true
# platforms : linux/amd64,linux/arm64
platforms : linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=ghcr.io/azuracast/web:buildcache

View File

@ -2,3 +2,21 @@ export LC_ALL=C
export DEBIAN_FRONTEND=noninteractive
minimal_apt_get_install='apt-get install -y --no-install-recommends'
install_without_postinst() {
local PACKAGE
PACKAGE=$1
mkdir -p /tmp/install_$PACKAGE
cd /tmp/install_$PACKAGE
apt-get download $PACKAGE
dpkg --unpack $PACKAGE*.deb
rm -f /var/lib/dpkg/info/$PACKAGE.postinst
dpkg --configure $PACKAGE
apt-get install -yf #To fix dependencies
cd /
rm -rf /tmp/install_$PACKAGE
}

View File

@ -3,9 +3,6 @@ set -e
source /bd_build/buildconfig
set -x
apt-get update
$minimal_apt_get_install netbase
# Prevent systemd auto-startup
ln -s /dev/null /etc/systemd/system/beanstalkd.service
$minimal_apt_get_install beanstalkd
install_without_postinst beanstalkd

View File

@ -3,10 +3,7 @@ set -e
source /bd_build/buildconfig
set -x
# Prevent systemd auto-startup
ln -s /dev/null /etc/systemd/system/cron.service
$minimal_apt_get_install cron
install_without_postinst cron
chmod 600 /etc/crontab