streamlining CI
ci/woodpecker/tag/woodpecker Pipeline was successful
Details
ci/woodpecker/tag/woodpecker Pipeline was successful
Details
streamlining CI streamlining CI
This commit is contained in:
parent
11158091e9
commit
9cc9404d32
|
@ -1,24 +1,21 @@
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
steps:
|
steps:
|
||||||
prep:
|
|
||||||
image: alpine
|
|
||||||
commands: |
|
|
||||||
wget http://repo-default.voidlinux.org/static/xbps-static-latest.x86_64-musl.tar.xz
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: alpine
|
image: gcc
|
||||||
|
environment:
|
||||||
|
- BUILD_DEPS=libxcb-util-dev
|
||||||
commands: |
|
commands: |
|
||||||
apk add --no-cache build-base gcc xcb-util-dev pkgconfig >/dev/null
|
apt-get update
|
||||||
|
apt-get install -y $${BUILD_DEPS}
|
||||||
make install DESTDIR="$${CI_WORKSPACE}/pkg" PREFIX="/usr"
|
make install DESTDIR="$${CI_WORKSPACE}/pkg" PREFIX="/usr"
|
||||||
|
|
||||||
package-xbps:
|
package-xbps:
|
||||||
image: alpine
|
image: ghcr.io/void-linux/void-musl-busybox
|
||||||
environment:
|
environment:
|
||||||
- LICENSE="GPL-2.0"
|
- LICENSE="GPL-2.0"
|
||||||
- SHORT_DESCRIPTION="Customized dwmblocks-async"
|
- SHORT_DESCRIPTION="Customized dwmblocks-async"
|
||||||
commands: |
|
commands: |
|
||||||
tar xvf xbps-static-latest.x86_64-musl.tar.xz -C /
|
|
||||||
xbps-create -A x86_64 \
|
xbps-create -A x86_64 \
|
||||||
-H "$${CI_REPO_URL}" \
|
-H "$${CI_REPO_URL}" \
|
||||||
-l "$${LICENSE}" \
|
-l "$${LICENSE}" \
|
||||||
|
@ -38,13 +35,13 @@ steps:
|
||||||
settings:
|
settings:
|
||||||
base_url: https://git.snaile.de
|
base_url: https://git.snaile.de
|
||||||
files:
|
files:
|
||||||
- "$${CI_REPO_NAME}-$${CI_COMMIT_TAG}.tar.gz"
|
- "${CI_REPO_NAME}-${CI_COMMIT_TAG}.tar.gz"
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea_release
|
from_secret: gitea_release
|
||||||
target: main
|
target: main
|
||||||
|
|
||||||
publish-xbps:
|
publish-xbps:
|
||||||
image: alpine
|
image: ghcr.io/void-linux/void-musl-busybox
|
||||||
environment:
|
environment:
|
||||||
- XBPS_TARGET_ARCH="x86_64"
|
- XBPS_TARGET_ARCH="x86_64"
|
||||||
secrets:
|
secrets:
|
||||||
|
@ -55,7 +52,6 @@ steps:
|
||||||
- /etc/woodpecker/:/etc/woodpecker:ro
|
- /etc/woodpecker/:/etc/woodpecker:ro
|
||||||
commands: |
|
commands: |
|
||||||
export XBPS_TARGET_ARCH
|
export XBPS_TARGET_ARCH
|
||||||
tar xvf xbps-static-latest.x86_64-musl.tar.xz -C /
|
|
||||||
mv $${CI_REPO_NAME}-$${CI_COMMIT_TAG}.x86_64.xbps /target
|
mv $${CI_REPO_NAME}-$${CI_COMMIT_TAG}.x86_64.xbps /target
|
||||||
xbps-rindex -daf /target/$${CI_REPO_NAME}-$${CI_COMMIT_TAG}.x86_64.xbps
|
xbps-rindex -a /target/$${CI_REPO_NAME}-$${CI_COMMIT_TAG}.x86_64.xbps
|
||||||
xbps-rindex -dS --signedby "$${CI_COMMIT_AUTHOR} <$${CI_COMMIT_AUTHOR_EMAIL}>" --privkey /etc/woodpecker/privkey.pem /target/$${CI_REPO_NAME}-$${CI_COMMIT_TAG}.x86_64.xbps
|
xbps-rindex -S --signedby "$${CI_COMMIT_AUTHOR} <$${CI_COMMIT_AUTHOR_EMAIL}>" --privkey /etc/woodpecker/privkey.pem /target/$${CI_REPO_NAME}-$${CI_COMMIT_TAG}.x86_64.xbps
|
||||||
|
|
Loading…
Reference in New Issue