jjr-nheko/.woodpecker.yml

33 lines
924 B
YAML
Raw Permalink Normal View History

2022-02-02 11:43:39 +01:00
platform: linux/amd64
2021-12-31 15:31:06 +01:00
pipeline:
build:
image: 'archlinux:latest'
2022-02-02 11:35:01 +01:00
pull: true
2022-01-05 20:32:33 +01:00
environment:
- SCCACHE_BUCKET=bur
- SCCACHE_ENDPOINT=s3.rustybever.be
- SCCACHE_S3_USE_SSL=true
secrets:
- aws_access_key_id
- aws_secret_access_key
2021-12-31 15:31:06 +01:00
commands:
# Update packages
- pacman -Syu --needed --noconfirm base-devel
# Create non-root user to perform build & switch to their home
- groupadd -g 1000 builder
- useradd -mg builder builder
- chown -R builder:builder "$PWD"
- "echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
- su builder
# Build the package
2021-12-31 16:09:20 +01:00
- MAKEFLAGS="-j$(nproc)" makepkg -s --noconfirm --needed
2021-12-31 15:31:06 +01:00
publish:
image: 'archlinux:latest'
commands:
# Publish the package
2022-02-02 11:35:01 +01:00
- 'curl -s -XPOST -H "X-API-KEY: $API_KEY" -T "$(ls *.pkg*)" https://arch.r8r.be/publish'
2021-12-31 16:09:20 +01:00
secrets:
- api_key