This commit is contained in:
14
.SRCINFO
Normal file
14
.SRCINFO
Normal file
@@ -0,0 +1,14 @@
|
||||
pkgbase = k0sctl-bin
|
||||
pkgdesc = A bootstrapping and management tool for k0s clusters.
|
||||
pkgver = 0.19.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/k0sproject/k0sctl
|
||||
arch = x86_64
|
||||
license = Apache-2.0
|
||||
provides = k0sctl
|
||||
conflicts = k0sctl
|
||||
options = !strip
|
||||
source = k0sctl-linux-amd64-0.19.0::https://github.com/k0sproject/k0sctl/releases/download/v0.19.0/k0sctl-linux-amd64
|
||||
sha256sums = a7394088c710633b6c02bbbb5a9ff8d9ab94a31e5d17f7b34808cd4aeefef40c
|
||||
|
||||
pkgname = k0sctl-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 192.168.68.254 --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"
|
||||
23
PKGBUILD
Normal file
23
PKGBUILD
Normal file
@@ -0,0 +1,23 @@
|
||||
# Maintainer: Toni Tauro <eye@eyenx.ch>
|
||||
# Co-Maintainer: Lukas Grossar <lukasgrossar@gmail.com>
|
||||
|
||||
pkgname=k0sctl-bin
|
||||
pkgver=0.19.0
|
||||
pkgrel=1
|
||||
pkgdesc="A bootstrapping and management tool for k0s clusters."
|
||||
arch=('x86_64')
|
||||
url="https://github.com/k0sproject/k0sctl"
|
||||
license=('Apache-2.0')
|
||||
source=("k0sctl-linux-amd64-$pkgver::https://github.com/k0sproject/k0sctl/releases/download/v${pkgver}/k0sctl-linux-amd64")
|
||||
sha256sums=('a7394088c710633b6c02bbbb5a9ff8d9ab94a31e5d17f7b34808cd4aeefef40c')
|
||||
options=(!strip)
|
||||
provides=("k0sctl")
|
||||
conflicts=("k0sctl")
|
||||
|
||||
package() {
|
||||
install -Dm 755 "$srcdir/k0sctl-linux-amd64-$pkgver" "$pkgdir/usr/bin/k0sctl"
|
||||
|
||||
"$pkgdir/usr/bin/k0sctl" completion --shell bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/k0sctl"
|
||||
"$pkgdir/usr/bin/k0sctl" completion --shell zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_k0sctl"
|
||||
"$pkgdir/usr/bin/k0sctl" completion --shell fish | install -Dm644 /dev/stdin "$pkgdir/usr/share/fish/vendor_completions.d/k0sctl.fish"
|
||||
}
|
||||
Reference in New Issue
Block a user