mirror of
https://github.com/openoms/joininbox.git
synced 2026-08-13 12:33:14 +02:00
* add amd64 image build * add bootstrap.service to always prepare ssh * add Makefile * pass GITHUB_ACTOR GITHUB_HEAD_REF to the build * download the build script from PR branch * output amd64 images to ci/amd64/builds
19 lines
605 B
Bash
19 lines
605 B
Bash
#!/bin/sh -eux
|
|
|
|
arch="$(uname -r | sed 's/^.*[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\(-[0-9]\{1,2\}\)-//')"
|
|
debian_version="$(lsb_release -r | awk '{print $2}')"
|
|
major_version="$(echo $debian_version | awk -F. '{print $1}')"
|
|
|
|
# Disable systemd apt timers/services
|
|
systemctl stop apt-daily.timer
|
|
systemctl stop apt-daily-upgrade.timer
|
|
systemctl disable apt-daily.timer
|
|
systemctl disable apt-daily-upgrade.timer
|
|
systemctl mask apt-daily.service
|
|
systemctl mask apt-daily-upgrade.service
|
|
systemctl daemon-reload
|
|
|
|
apt-get update
|
|
|
|
apt-get -y upgrade linux-image-$arch
|
|
apt-get -y install linux-headers-$(uname -r)
|