This commit is contained in:
parent
24fad96f28
commit
cc8b8ecf0b
3 changed files with 59 additions and 0 deletions
14
.woodpecker.yml
Normal file
14
.woodpecker.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
# https://gitea.treehouse.systems/ariadne/ariadne.space/src/branch/main/.woodpecker.yml
|
||||
pipeline:
|
||||
package:
|
||||
image: cgr.dev/chainguard/melange:latest
|
||||
commands:
|
||||
- melange keygen
|
||||
- melange build melange.yml --arch x86_64 --signing-key melange.rsa
|
||||
|
||||
image:
|
||||
image: cgr.dev/chainguard/apko:latest
|
||||
commands:
|
||||
- echo $REGISTRY_SECRET | apko login --username Nulo --password-stdin gitea.nulo.in
|
||||
- apko publish --debug --arch x86_64 --keyring-append melange.rsa.pub apko.yaml gitea.nulo.in/Nulo/dlbot4:latest
|
||||
secrets: [REGISTRY_SECRET]
|
20
apko.yaml
Normal file
20
apko.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
contents:
|
||||
repositories:
|
||||
- https://dl-cdn.alpinelinux.org/alpine/v3.17/main
|
||||
- /work/packages
|
||||
packages:
|
||||
- alpine-baselayout-data
|
||||
- ca-certificates
|
||||
- dlbot
|
||||
|
||||
accounts:
|
||||
groups:
|
||||
- groupname: dlbot
|
||||
gid: 10000
|
||||
users:
|
||||
- username: dlbot
|
||||
uid: 10000
|
||||
run-as: 10000
|
||||
|
||||
entrypoint:
|
||||
command: /usr/bin/dlbot
|
25
melange.yml
Normal file
25
melange.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
package:
|
||||
name: dlbot
|
||||
version: 4.0.0
|
||||
epoch: 0
|
||||
description: "downloader bot for Telegram"
|
||||
target-architecture:
|
||||
- all
|
||||
dependencies:
|
||||
runtime:
|
||||
|
||||
environment:
|
||||
contents:
|
||||
repositories:
|
||||
- https://dl-cdn.alpinelinux.org/alpine/v3.17/main
|
||||
- https://dl-cdn.alpinelinux.org/alpine/v3.17/community
|
||||
packages:
|
||||
- alpine-baselayout-data
|
||||
- busybox
|
||||
- ca-certificates-bundle
|
||||
- go
|
||||
|
||||
pipeline:
|
||||
- name: Build application
|
||||
runs: |
|
||||
go build -o "${{targets.destdir}}/usr/bin/dlbot"
|
Reference in a new issue