Add Gitea Alpine registry workflow

This commit is contained in:
Joachim Schlöffel
2026-06-07 23:27:06 +02:00
parent 772eba1e20
commit bb176142e5
12 changed files with 282 additions and 14 deletions

View File

@@ -0,0 +1,48 @@
name: Build Alpine Packages
on:
push:
branches:
- master
- main
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
container:
image: alpine:3.23
env:
ALPINE_VERSION: "3.23"
ALPINE_ARCHES: "x86_64 aarch64"
ALPINE_REGISTRY_BRANCH: "v3.23"
ALPINE_REGISTRY_REPOSITORY: "${{ vars.PACKAGE_NAME }}"
INSTANCE_URL: "${{ vars.INSTANCE_URL }}"
PACKAGE_OWNER: "${{ vars.PACKAGE_OWNER }}"
PACKAGE_USER: "${{ secrets.PACKAGE_USER }}"
PACKAGE_TOKEN: "${{ secrets.PACKAGE_TOKEN }}"
PACKAGER: "Joachim Schlöffel <me@joachim-schloeffel.com>"
steps:
- name: Prepare Environment
run: |
apk add --no-cache --update abuild-rootbld alpine-sdk atools-apkbuild-lint bash ca-certificates curl doas git nodejs sudo tar
- name: Checkout
uses: actions/checkout@v3
- name: Build packages
run: |
scripts/apk/clean.sh
apkbuild-lint packaging/alpine/local/seaweedfs/APKBUILD
scripts/apk/ci-build.sh
scripts/apk/list-packages.sh
- name: Smoke test
run: scripts/apk/ci-smoke.sh
- name: Publish Alpine packages
if: github.event_name != 'pull_request'
run: scripts/apk/publish-gitea.sh