Compare commits

..

5 Commits

Author SHA1 Message Date
Igor
b5f5e8c865 Use unique tag id for releases 2025-09-29 06:09:09 +02:00
Igor Pecovnik
03d0d16197 Use GH runners 2025-09-29 06:05:00 +02:00
Igor Pecovnik
7eaa2eba3d Bo back to main and drop parameter that is not needed 2025-09-29 06:03:29 +02:00
Igor
12c44c5d71 Make more images 2025-09-29 05:57:44 +02:00
Igor
5f3f5fd7f3 Update action.yml (#6)
* Update action.yml

* Update armbian/build action version to v25.08

* Update action.yml

* Add delete old releases action

* Switch do SDK branch to tune up
2025-09-29 05:35:30 +02:00
3 changed files with 45 additions and 4 deletions

6
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

View File

@@ -15,7 +15,7 @@ jobs:
actions: write
steps:
# checkout this repository
- uses: actions/checkout@v4
- uses: actions/checkout@v5
# prevent GitHub from suspending cronjob
- uses: liskin/gh-workflow-keepalive@v1
@@ -24,15 +24,15 @@ jobs:
strategy:
fail-fast: false
matrix:
board: [uefi-x86]
os: ["noble"]
board: ["uefi-x86","uefi-arm64"]
os: ["noble","trixie"]
extension: [",image-output-qcow2",""]
name: "${{ matrix.os }},${{ matrix.board }}${{ matrix.extension }}"
runs-on: ubuntu-latest
steps:
- uses: armbian/build@v23.11.2
- uses: armbian/build@main
with:
# mandatory
armbian_token: "${{ secrets.GITHUB_TOKEN }}" # GitHub installation access token
@@ -40,8 +40,10 @@ jobs:
armbian_release: "${{ matrix.os }}" # userspace: jammy, bookworm, trixie, etc.
armbian_board: "${{ matrix.board }}" # board build target
# optional
armbian_ui: "minimal"
armbian_extensions: "docker-ce,sdk${{ matrix.extension }}" # enable extensions
armbian_release_tittle: "Armbian SDK" # release tittle
armbian_release_tag: "${{ github.run_id }}"
armbian_release_body: "Virtual images for x86 and arm64" # release body
armbian_pgp_key: "${{ secrets.GPG_KEY1 }}" # key for signing
armbian_pgp_password: "${{ secrets.GPG_PASSPHRASE1 }}" # password for key

View File

@@ -0,0 +1,33 @@
name: Delete Old Releases
on:
schedule:
- cron: '0 3 * * *' # Daily at 03:00 UTC
workflow_dispatch: # Manual trigger
jobs:
clean_releases:
runs-on: ubuntu-latest
steps:
- name: Delete old releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Get all releases (handle pagination)
releases=$(gh api --paginate repos/${{ github.repository }}/releases)
# Process full releases
full_releases=$(echo "$releases" | jq -c '[.[] | select(.prerelease == false)] | sort_by(.created_at) | reverse')
full_to_delete=$(echo "$full_releases" | jq '.[3:] | .[].id')
for id in $full_to_delete; do
echo "Deleting old full release ID: $id"
gh api --method DELETE repos/${{ github.repository }}/releases/$id
done
# Process pre-releases
pre_releases=$(echo "$releases" | jq -c '[.[] | select(.prerelease == true)] | sort_by(.created_at) | reverse')
pre_to_delete=$(echo "$pre_releases" | jq '.[3:] | .[].id')
for id in $pre_to_delete; do
echo "Deleting old pre-release ID: $id"
gh api --method DELETE repos/${{ github.repository }}/releases/$id
done