This commit is contained in:
12
.SRCINFO
Normal file
12
.SRCINFO
Normal file
@@ -0,0 +1,12 @@
|
||||
pkgbase = k0s-bin
|
||||
pkgdesc = k0s - Zero Friction Kubernetes
|
||||
pkgver = 1.32.3+k0s.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/k0sproject/k0s
|
||||
arch = x86_64
|
||||
license = Apache-2.0
|
||||
options = !strip
|
||||
source = https://github.com/k0sproject/k0s/releases/download/v1.32.3+k0s.0/k0s-v1.32.3+k0s.0-amd64
|
||||
sha256sums = e06554c0fbc117c7792673e536297c3e792eefcb20457289ef5b02894ce85b2f
|
||||
|
||||
pkgname = k0s-bin
|
||||
52
.gitea/workflows/build.yml
Normal file
52
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
name: Build package
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-package:
|
||||
runs-on: imgbuilder
|
||||
container:
|
||||
image: gitea.konchin.com/image/archmakepkg
|
||||
credentials:
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
options: --dns 172.20.10.253 --dns-search konchin.com --dns-option ndots:15
|
||||
env:
|
||||
REPO_NAME: custom
|
||||
MINIO_BUCKET: archrepo
|
||||
MINIO_ENDPOINT: https://minio.konchin.com
|
||||
MINIO_ACCESSKEY: ${{ secrets.MINIO_ACCESSKEY }}
|
||||
MINIO_SECRETKEY: ${{ secrets.MINIO_SECRETKEY }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
chown -R builder .
|
||||
sudo -u builder makepkg -sc --needed --noconfirm
|
||||
|
||||
- name: Setup MinIO
|
||||
run: |
|
||||
mcli alias set m "${{ env.MINIO_ENDPOINT }}" \
|
||||
"${{ env.MINIO_ACCESSKEY }}" "${{ env.MINIO_SECRETKEY }}"
|
||||
echo "Set endpoint to ${{ env.MINIO_ENDPOINT }}"
|
||||
|
||||
- name: Copy repo db from MinIO
|
||||
run: |
|
||||
mkdir repo
|
||||
mcli cp "m/${{ env.MINIO_BUCKET }}/${{ env.REPO_NAME }}.db" "repo/${{ env.REPO_NAME }}.db.tar.zst"
|
||||
mcli cp "m/${{ env.MINIO_BUCKET }}/${{ env.REPO_NAME }}.files" "repo/${{ env.REPO_NAME }}.files.tar.zst"
|
||||
echo "Copy ${{ env.REPO_NAME }}.db and ${{ env.REPO_NAME }}.files from MinIO"
|
||||
|
||||
- name: Add pkgs to repo db
|
||||
run: |
|
||||
repo-add "repo/${{ env.REPO_NAME }}.db.tar.zst" *.pkg.tar.zst
|
||||
mv *.pkg.tar.zst repo
|
||||
echo "Add $(ls *.pkg.tar.zst) to repo"
|
||||
|
||||
- name: Update repo to MinIO
|
||||
run: |
|
||||
mcli mv repo/${{ env.REPO_NAME }}.db.tar.zst "m/${{ env.MINIO_BUCKET }}/${{ env.REPO_NAME }}.db"
|
||||
mcli mv repo/${{ env.REPO_NAME }}.files.tar.zst "m/${{ env.MINIO_BUCKET }}/${{ env.REPO_NAME }}.files"
|
||||
mcli mv repo/*.pkg.tar.zst "m/${{ env.MINIO_BUCKET }}"
|
||||
echo "Update ${{ env.REPO_NAME }}.db adn ${{ env.REPO_NAME }}.files to MinIO"
|
||||
21
PKGBUILD
Normal file
21
PKGBUILD
Normal file
@@ -0,0 +1,21 @@
|
||||
# Maintainer: Toni Tauro <eye@eyenx.ch>
|
||||
# Co-Maintainer: Lukas Grossar <lukasgrossar@gmail.com>
|
||||
|
||||
pkgname=k0s-bin
|
||||
pkgver=1.32.3+k0s.0
|
||||
pkgrel=1
|
||||
pkgdesc="k0s - Zero Friction Kubernetes"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/k0sproject/k0s"
|
||||
license=('Apache-2.0')
|
||||
source=("https://github.com/k0sproject/k0s/releases/download/v${pkgver}/k0s-v${pkgver}-amd64")
|
||||
sha256sums=('e06554c0fbc117c7792673e536297c3e792eefcb20457289ef5b02894ce85b2f')
|
||||
options=(!strip)
|
||||
|
||||
package() {
|
||||
install -Dm 755 "$srcdir/k0s-v${pkgver}-amd64" "$pkgdir/usr/bin/k0s"
|
||||
|
||||
"$pkgdir/usr/bin/k0s" completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/k0s"
|
||||
"$pkgdir/usr/bin/k0s" completion zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_k0s"
|
||||
"$pkgdir/usr/bin/k0s" completion fish | install -Dm644 /dev/stdin "$pkgdir/usr/share/fish/vendor_completions.d/k0s.fish"
|
||||
}
|
||||
Reference in New Issue
Block a user