bugfix publish pipeline

This commit is contained in:
Luca Bilke 2024-05-21 21:20:02 +02:00
parent 4cb2fa73d0
commit 111aba5a2d
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47
1 changed files with 2 additions and 10 deletions

View File

@ -25,43 +25,35 @@ jobs:
host: x86_64
libc: glibc
platform: linux/amd64
test: 0
- arch: i686
host: i686
libc: glibc
platform: linux/386
test: 0
- arch: aarch64
host: x86_64
libc: glibc
platform: linux/amd64
test: 0
- arch: armv7l
host: x86_64
libc: glibc
platform: linux/amd64
test: 0
- arch: x86_64-musl
host: x86_64-musl
libc: musl
platform: linux/amd64
test: 1
- arch: armv6l-musl
host: x86_64-musl
libc: musl
platform: linux/amd64
test: 0
- arch: aarch64-musl
host: x86_64-musl
libc: musl
platform: linux/amd64
test: 0
env:
MAINTAINER: "Luca Bilke <luca@bil.ke>"
PATH: "/usr/libexec/chroot-git:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin"
ARCH: "${{ matrix.config.arch }}"
BOOTSTRAP: "${{ matrix.config.host }}"
TEST: "${{ matrix.config.test }}"
HOSTREPO: /hostrepo
container:
image: git.snaile.de/snailed/xbps-builder:${{ matrix.config.libc }}-latest
@ -113,14 +105,14 @@ jobs:
(
here="$(pwd)"
cd /
"$here/common/travis/build.sh" "$BOOTSTRAP" "$ARCH" "$TEST"
"$here/common/travis/build.sh" "$BOOTSTRAP" "$ARCH" 0
)
- name: Sign and upload packages
run: |
echo '${{ secrets.XBPS_SIGNING_KEY }}' >"/tmp/privkey.pem"
for package in $(echo /hostdir/binpkgs/*.${{ matrix.config.arch }}.xbps | cut -d ' ' -f 1); do
for package in $(echo "$HOME"/hostdir/binpkgs/*.${{ matrix.config.arch }}.xbps | cut -d ' ' -f 1); do
XBPS_PASSPHRASE=${{ secrets.XBPS_SIGNING_PASSPHRASE }} xbps-rindex --privkey "/tmp/privkey.pem" --sign-pkg --signedby "${{ env.MAINTAINER }}" "$package"
for item in "$package" "${package}.sig2"; do
curl -X PUT --digest -u "${{ vars.XBPS_WEBDAV_USER }}:${{ secrets.XBPS_WEBDAV_KEY }}" -T "${item}" "https://xbps.snaile.de/$(basename $item)"