Skip to content

Commit

Permalink
Make DietPi's software tools available during CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
bvobart committed Jan 14, 2024
1 parent c3898e3 commit 3bfc57b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
base_image: dietpi:rpi_armv8_bullseye
cpu: cortex-a53
image_additional_mb: 500
commands: |
set +x
echo
Expand All @@ -31,6 +32,8 @@ jobs:
echo ">--------------------------------------------------------------------------------------------------<"
echo
ping -4nc 1 -W 10 9.9.9.9
./dietpi/build.sh
echo
Expand Down
14 changes: 12 additions & 2 deletions dietpi/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@
HERE="$(dirname "$(realpath "$0")")"
REPO_DIR=$(realpath "$HERE/..")

# Add /boot/dietpi to PATH so we can use the dietpi-* commands
PATH="$PATH:/boot/dietpi"
source "$HERE/utils.sh"

echo "DEBUGGING!!!!"
ping -4nc 1 -W 10 9.9.9.9
echo "DEBUGGING!!!!"

#--------------------------------------------------------------------------------------------------

## Create pi-dj user and delete default dietpi user
default_username=pi-dj
default_password=pidj
Expand Down Expand Up @@ -56,6 +64,7 @@ set_dietpi_config SOFTWARE_DISABLE_SSH_PASSWORD_LOGINS root # Disable SSH passwo
#
#


## Install all packages needed for a usable desktop environment
# 5: Alsa
# 6: X.Org
Expand All @@ -65,11 +74,12 @@ set_dietpi_config SOFTWARE_DISABLE_SSH_PASSWORD_LOGINS root # Disable SSH passwo
# 188: Go
# 67: Firefox
dietpi-software install 5 6 7 170 17 188 67

# install i3 and dependencies
apt install -y i3 polybar onboard fonts-roboto fonts-font-awesome dunst rofi
apt-get install -y i3 polybar onboard fonts-roboto fonts-font-awesome dunst rofi

# install some useful CLI tools for maintenance
apt install -y kitty zsh man less
apt-get install -y kitty zsh man less
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
chsh -s "$(which zsh)"
git config pull.rebase true
Expand Down

0 comments on commit 3bfc57b

Please sign in to comment.