Skip to content

feat: Use deb822 APT sources #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/download-and-test-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,14 @@ jobs:
mkdir -p build/output/{debs,debs-beta}/extra/${i}-utils
mkdir -p build/output/{debs,debs-beta}/extra/${i}-desktop
# add all armbian repositories
echo "deb [arch=armhf,arm64,amd64,i386,riscv64 signed-by=/usr/share/keyrings/armbian.gpg] http://apt.armbian.com ${i} main ${i}-utils ${i}-desktop" | sudo tee /etc/apt/sources.list.d/armbian-${i}.list
cat <<- EOF | tee /etc/apt/sources.list.d/armbian-${i}.sources
Types: deb
URIs: https://apt.armbian.com
Suites: ${i}
Components: main ${i}-utils ${i}-desktop
Architectures: armhf arm64 amd64 i386 riscv64
Signed-By: /usr/share/keyrings/armbian.gpg
EOF
done

# update and get version
Expand Down Expand Up @@ -311,7 +318,7 @@ jobs:

- name: Build testing repository
run: |

# read config once again
. os/external/${{ matrix.node }}.conf
cd build
Expand Down Expand Up @@ -431,7 +438,14 @@ jobs:
wget https://${URL}/armbian.key -O key
gpg --dearmor < key | tee /usr/share/keyrings/armbian.gpg > /dev/null
chmod go+r /usr/share/keyrings/armbian.gpg
echo "deb [signed-by=/usr/share/keyrings/armbian.gpg] http://${URL} $RELEASE main ${RELEASE}-utils ${RELEASE}-desktop" | tee /etc/apt/sources.list.d/armbian.list
cat <<- EOF | tee /etc/apt/sources.list.d/armbian.sources
Types: deb
URIs: https://${URL}
Suites: $RELEASE
Components: main ${RELEASE}-utils ${RELEASE}-desktop
Signed-By: /usr/share/keyrings/armbian.gpg
EOF

apt update -y
apt upgrade -y

Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/repository-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,22 @@ jobs:
sudo gpg --dearmor < key | sudo tee /usr/share/keyrings/armbian.gpg > /dev/null
sudo chmod go+r /usr/share/keyrings/armbian.gpg
RELEASE=$(cat /etc/os-release | grep UBUNTU_CODENAME | cut -d"=" -f2)
sudo echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/armbian.gpg] http://beta.armbian.com $RELEASE main ${RELEASE}-utils ${RELEASE}-desktop" | sudo tee /etc/apt/sources.list.d/armbian.list
cat <<- EOF | tee /etc/apt/sources.list.d/armbian.sources
Types: deb
URIs: https://beta.armbian.com
Suites: ${RELEASE}
Components: main ${RELEASE}-utils ${RELEASE}-desktop
Architectures: $(dpkg --print-architecture)
Signed-By: /usr/share/keyrings/armbian.gpg
EOF
sudo apt-get update
CURRENT=$(apt search --names-only 'linux-image-current-x86' 2> /dev/null | grep Armbian | grep -oE "(\w*[.]\w*)*" | head -1)
EDGE=$(apt search --names-only 'linux-image-edge-x86' 2> /dev/null | grep Armbian | grep -oE "(\w*[.]\w*)*" | head -1)
echo "CURRENT=${CURRENT}" >> $GITHUB_ENV
echo "EDGE=${EDGE}" >> $GITHUB_ENV
- name: Get runners capacity
run: |

echo "ABc= $CURRENT $EDGE"
sudo apt-get -y install datamash
LIST=$(curl -H "Authorization: Token ${{ secrets.NETBOX_TOKEN }}" -H "Accept: application/json; indent=4" \
Expand All @@ -70,7 +77,7 @@ jobs:

# add smoke test success
#gh run download --name status --repo github.com/armbian/scripts
#jq '.SMOKE += "'$(cat success)'%"' runners_capacity.json > tmp.json
#jq '.SMOKE += "'$(cat success)'%"' runners_capacity.json > tmp.json
#cp tmp.json runners_capacity.json
#cat runners_capacity.json

Expand All @@ -82,7 +89,7 @@ jobs:
#| xargs -n5 -d'\n' | sed -e 's/\" \"/\",\"/g' | tr -d '"' | sed "s/,/\t/g" | datamash --sort -g 5 sum 2,3 --output-delimiter=, \
#| LC_ALL=C awk -F , -v OFS=\| '$3/=1024' | cut -d"." -f1 | sed -e 's/$/ Gb/g' | sed -e 's/^\|$/|/g' >> label.tmp

# header and footer are edited at GitHub
# header and footer are edited at GitHub
cat scripts/.github/header.inc > scripts/README.md
echo -en "\n\n" >> scripts/README.md
#cat label.tmp >> scripts/README.md
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,14 @@ jobs:
wget https://${{ inputs.url }}/armbian.key -O key
gpg --dearmor < key | tee /usr/share/keyrings/armbian.gpg > /dev/null
chmod go+r /usr/share/keyrings/armbian.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/armbian.gpg] http://${{ inputs.url }} $RELEASE main ${RELEASE}-utils ${RELEASE}-desktop" | tee /etc/apt/sources.list.d/armbian.list
cat <<- EOF | tee /etc/apt/sources.list.d/armbian.sources
Types: deb
URIs: https://${{ inputs.url }}
Suites: ${RELEASE}
Components: main ${RELEASE}-utils ${RELEASE}-desktop
Architectures: $(dpkg --print-architecture)
Signed-By: /usr/share/keyrings/armbian.gpg
EOF
apt update -y
apt upgrade -y

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/testing-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ jobs:
wget https://${{ inputs.url }}/armbian.key -O key
gpg --dearmor < key | tee /usr/share/keyrings/armbian.gpg > /dev/null
chmod go+r /usr/share/keyrings/armbian.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/armbian.gpg] http://${{ inputs.url }} $RELEASE main ${RELEASE}-utils ${RELEASE}-desktop" | tee /etc/apt/sources.list.d/armbian.list
cat <<- EOF | tee /etc/apt/sources.list.d/armbian.sources
Types: deb
URIs: https://${{ inputs.url }}
Suites: ${RELEASE}
Components: main ${RELEASE}-utils ${RELEASE}-desktop
Architectures: $(dpkg --print-architecture)
Signed-By: /usr/share/keyrings/armbian.gpg
EOF
apt update -y
apt upgrade -y

Expand Down