Parallel Builds #10
@@ -1,8 +1,6 @@
|
||||
name: Build Alpine Packages
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "17 5 * * 1"
|
||||
push:
|
||||
branches:
|
||||
- "**"
|
||||
@@ -67,13 +65,11 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Prepare package cache
|
||||
if: github.event_name != 'schedule'
|
||||
id: package-selection
|
||||
run: |
|
||||
scripts/apk/ci-package-cache.sh prepare
|
||||
|
||||
- name: Build packages
|
||||
if: github.event_name != 'schedule'
|
||||
run: |
|
||||
scripts/apk/ci-build.sh
|
||||
if [ -d packages/local ]; then
|
||||
@@ -81,11 +77,10 @@ jobs:
|
||||
fi
|
||||
|
||||
- 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
|
||||
|
||||
- name: Check artifact upload support
|
||||
if: github.event_name != 'schedule'
|
||||
id: artifact-upload
|
||||
run: |
|
||||
if [ -n "${ACTIONS_RUNTIME_TOKEN:-}" ]; then
|
||||
@@ -95,14 +90,14 @@ jobs:
|
||||
fi
|
||||
|
||||
- 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
|
||||
with:
|
||||
name: greptimedb-musl-binaries-${{ matrix.alpine_registry_branch }}
|
||||
path: packages/ci-assets/
|
||||
|
||||
- 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
|
||||
with:
|
||||
name: alpine-local-registry-${{ matrix.alpine_registry_branch }}-${{ github.sha }}
|
||||
@@ -110,11 +105,10 @@ jobs:
|
||||
retention-days: 30
|
||||
|
||||
- name: Smoke test
|
||||
if: github.event_name != 'schedule'
|
||||
run: scripts/apk/ci-smoke.sh
|
||||
|
||||
- name: Generate security reports
|
||||
if: github.event_name != 'schedule' && env.ALPINE_SKIP_BUILD != '1'
|
||||
if: env.ALPINE_SKIP_BUILD != '1'
|
||||
run: |
|
||||
scripts/apk/security-report.sh
|
||||
if [ -n "${GITHUB_STEP_SUMMARY:-}" ]; then
|
||||
@@ -124,16 +118,16 @@ jobs:
|
||||
fi
|
||||
|
||||
- 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
|
||||
with:
|
||||
name: apk-security-reports-${{ matrix.alpine_registry_branch }}
|
||||
path: packages/security-reports/
|
||||
|
||||
- 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
|
||||
|
||||
- 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
|
||||
|
||||
@@ -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
|
||||
@@ -1,5 +1,7 @@
|
||||
# Alpine Packages
|
||||
|
||||
[](https://code.factoring.digital/public/alpine-packages/actions?workflow=package-status.yml)
|
||||
|
||||
Alpine stable packaging for internal packages. This repository carries selected
|
||||
upstream releases ahead of Alpine community packages when we need newer
|
||||
features, packaging fixes, or service layouts on the current Alpine branch.
|
||||
|
||||
Reference in New Issue
Block a user