Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/generate-jira-excerpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
git diff --cached --quiet || git commit -m "Update WEB indes files"
git push

- name: "Run base-files update action"
- name: "Run pull from Repository action"
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: "Bigin update"
event-type: "Repository status"
13 changes: 6 additions & 7 deletions .github/workflows/generate-motd.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: "Generate motd for Linux OS"
on:
push:
repository_dispatch:
types: ["MOTD update"]

Expand All @@ -11,7 +10,7 @@ concurrency:
jobs:
jira:
runs-on: ubuntu-24.04
name: "Get from Armbian Jira"
name: "Generate MOTD"
steps:

- name: Checkout repository
Expand Down Expand Up @@ -46,8 +45,8 @@ jobs:
git diff --cached --quiet || git commit -m "Update WEB indes files"
git push

# - name: "Run base-files update action"
# uses: peter-evans/repository-dispatch@v3
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# event-type: "Base files"
- name: "Run Bigin update action"
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: "Bigin update"
79 changes: 79 additions & 0 deletions .github/workflows/repository-status.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: "Fetch Armbian kernel package versions"
on:
push:
repository_dispatch:
types: ["Repository status"]

concurrency:
group: redirector
cancel-in-progress: false

jobs:
jira:
runs-on: ubuntu-24.04
name: "Get from Armbian Repository"
steps:

- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
path: armbian.github.io

- name: Get info from Armbian repository
run: |

set -euo pipefail

KEYRING="/usr/share/keyrings/armbian.gpg"
LIST="/etc/apt/sources.list.d/armbian.list"

# Import Armbian APT key
curl -fsSL https://apt.armbian.com/armbian.key | sudo gpg --dearmor -o "$KEYRING"
sudo chmod go+r "$KEYRING"

# Detect release codename (Ubuntu/Debian)
. /etc/os-release
RELEASE="${UBUNTU_CODENAME:-${VERSION_CODENAME}}"

# Add Armbian repo
ARCH="$(dpkg --print-architecture)"
echo "deb [arch=$ARCH signed-by=$KEYRING] https://beta.armbian.com $RELEASE main ${RELEASE}-utils ${RELEASE}-desktop" \
| sudo tee "$LIST" > /dev/null

sudo apt-get update -qq

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)
if [[ -z "${CURRENT}" || -z "${EDGE}" ]]; then
echo "Failed to determine CURRENT/EDGE versions" >&2
exit 1
fi
# Generate badges
sed "s/{{VERSION}}/$CURRENT/g" armbian.github.io/templates/armbian-badge-current.svg > current.svg
sed "s/{{VERSION}}/$EDGE/g" armbian.github.io/templates/armbian-badge-edge.svg > edge.svg

# Write JSON for other usage
printf '{\n "CURRENT": "%s",\n "EDGE": "%s"\n}\n' "${CURRENT:-}" "${EDGE:-}" > kernel-versions.json

- name: Commit changes if any
run: |

cd armbian.github.io
git fetch origin data || true
git checkout data
mkdir -p data/
mv ${{ github.workspace }}/current.svg data/
mv ${{ github.workspace }}/edge.svg data/
mv ${{ github.workspace }}/kernel-versions.json data/
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
git add data/.
git diff --cached --quiet || git commit -m "Update repository data"
git push

- name: "Run Bigin update action"
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: "MOTD update"
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ It also produces [data exchange files](https://github.armbian.com/) used for aut
<a href=https://github.com/armbian/armbian.github.io/actions/workflows/generate-jira-excerpt.yml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/generate-jira-excerpt.yml?logo=githubactions&label=Status&style=for-the-badge&branch=main&logoColor=white"></a>
Extracts metadata and summaries from public Jira issues.

- **Fetch Armbian Kernel Package Versions**
<a href=https://github.com/armbian/armbian.github.io/actions/workflows/repository-status.yaml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/repository-status.yaml?logo=githubactions&label=Status&style=for-the-badge&branch=main&logoColor=white"></a>
Fetches the latest CURRENT and EDGE kernel package versions from Armbian's beta repository and generates SVG badges and a JSON file.

### Infrastructure & Community

- **Mirror GitHub Artifacts to CDN**
Expand Down
22 changes: 22 additions & 0 deletions templates/armbian-badge-current.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions templates/armbian-badge-edge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.