add package update status badge
Build Alpine Packages / build-and-publish (v3.24, 3.24) (pull_request) Successful in 35m57s
Build Alpine Packages / build-and-publish (v3.24, 3.24) (push) Successful in 1h17m58s

This commit is contained in:
Joachim Schlöffel
2026-09-26 23:51:50 +02:00
parent e4093a3c9f
commit f5efea2160
3 changed files with 39 additions and 13 deletions
+7 -13
View File
@@ -1,8 +1,6 @@
name: Build Alpine Packages name: Build Alpine Packages
on: on:
schedule:
- cron: "17 5 * * 1"
push: push:
branches: branches:
- "**" - "**"
@@ -67,13 +65,11 @@ jobs:
fi fi
- name: Prepare package cache - name: Prepare package cache
if: github.event_name != 'schedule'
id: package-selection id: package-selection
run: | run: |
scripts/apk/ci-package-cache.sh prepare scripts/apk/ci-package-cache.sh prepare
- name: Build packages - name: Build packages
if: github.event_name != 'schedule'
run: | run: |
scripts/apk/ci-build.sh scripts/apk/ci-build.sh
if [ -d packages/local ]; then if [ -d packages/local ]; then
@@ -81,11 +77,10 @@ jobs:
fi fi
- name: Export GreptimeDB CI assets - name: Export GreptimeDB CI assets
if: github.event_name != 'schedule' && steps.package-selection.outputs.greptimedb_selected == 'true' if: steps.package-selection.outputs.greptimedb_selected == 'true'
run: scripts/apk/export-ci-assets.sh run: scripts/apk/export-ci-assets.sh
- name: Check artifact upload support - name: Check artifact upload support
if: github.event_name != 'schedule'
id: artifact-upload id: artifact-upload
run: | run: |
if [ -n "${ACTIONS_RUNTIME_TOKEN:-}" ]; then if [ -n "${ACTIONS_RUNTIME_TOKEN:-}" ]; then
@@ -95,14 +90,14 @@ jobs:
fi fi
- name: Upload generated CI assets - name: Upload generated CI assets
if: github.event_name != 'schedule' && steps.package-selection.outputs.greptimedb_selected == 'true' && steps.artifact-upload.outputs.available == 'true' if: steps.package-selection.outputs.greptimedb_selected == 'true' && steps.artifact-upload.outputs.available == 'true'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: greptimedb-musl-binaries-${{ matrix.alpine_registry_branch }} name: greptimedb-musl-binaries-${{ matrix.alpine_registry_branch }}
path: packages/ci-assets/ path: packages/ci-assets/
- name: Upload local Alpine registry - name: Upload local Alpine registry
if: github.event_name != 'schedule' && steps.package-selection.outputs.packages_selected == 'true' && steps.artifact-upload.outputs.available == 'true' if: steps.package-selection.outputs.packages_selected == 'true' && steps.artifact-upload.outputs.available == 'true'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: alpine-local-registry-${{ matrix.alpine_registry_branch }}-${{ github.sha }} name: alpine-local-registry-${{ matrix.alpine_registry_branch }}-${{ github.sha }}
@@ -110,11 +105,10 @@ jobs:
retention-days: 30 retention-days: 30
- name: Smoke test - name: Smoke test
if: github.event_name != 'schedule'
run: scripts/apk/ci-smoke.sh run: scripts/apk/ci-smoke.sh
- name: Generate security reports - name: Generate security reports
if: github.event_name != 'schedule' && env.ALPINE_SKIP_BUILD != '1' if: env.ALPINE_SKIP_BUILD != '1'
run: | run: |
scripts/apk/security-report.sh scripts/apk/security-report.sh
if [ -n "${GITHUB_STEP_SUMMARY:-}" ]; then if [ -n "${GITHUB_STEP_SUMMARY:-}" ]; then
@@ -124,16 +118,16 @@ jobs:
fi fi
- name: Upload security reports - name: Upload security reports
if: github.event_name != 'schedule' && env.ALPINE_SKIP_BUILD != '1' && steps.artifact-upload.outputs.available == 'true' if: env.ALPINE_SKIP_BUILD != '1' && steps.artifact-upload.outputs.available == 'true'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: apk-security-reports-${{ matrix.alpine_registry_branch }} name: apk-security-reports-${{ matrix.alpine_registry_branch }}
path: packages/security-reports/ path: packages/security-reports/
- name: Runtime test - name: Runtime test
if: github.event_name != 'schedule' && env.ALPINE_SKIP_BUILD != '1' if: env.ALPINE_SKIP_BUILD != '1'
run: scripts/apk/runtime-test.sh run: scripts/apk/runtime-test.sh
- name: Publish Alpine packages - name: Publish Alpine packages
if: github.event_name != 'schedule' && github.ref == 'refs/heads/main' && env.ALPINE_SKIP_BUILD != '1' if: github.ref == 'refs/heads/main' && env.ALPINE_SKIP_BUILD != '1'
run: scripts/apk/publish-gitea.sh run: scripts/apk/publish-gitea.sh
+30
View File
@@ -0,0 +1,30 @@
name: Package Update Status
on:
schedule:
- cron: "17 5 * * 1"
workflow_dispatch:
jobs:
package-status:
runs-on: ubuntu-latest
container:
image: alpine:3.24
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check packaged upstream versions
run: |
apk add --no-cache bash curl git jq
APK_UPDATE_CHECK_MODE=warn scripts/apk/outdated.sh > update-check.txt
cat update-check.txt
if [ -n "${GITHUB_STEP_SUMMARY:-}" ]; then
{
echo "## Upstream package update check"
echo
echo '```text'
cat update-check.txt
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
fi
+2
View File
@@ -1,5 +1,7 @@
# Alpine Packages # Alpine Packages
[![Package update check](https://code.factoring.digital/public/alpine-packages/actions/workflows/package-status.yml/badge.svg?branch=main&event=schedule)](https://code.factoring.digital/public/alpine-packages/actions?workflow=package-status.yml)
Alpine stable packaging for internal packages. This repository carries selected Alpine stable packaging for internal packages. This repository carries selected
upstream releases ahead of Alpine community packages when we need newer upstream releases ahead of Alpine community packages when we need newer
features, packaging fixes, or service layouts on the current Alpine branch. features, packaging fixes, or service layouts on the current Alpine branch.