contenedor+ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Cat /dev/Nulo 2023-02-26 23:07:38 -03:00
parent 24fad96f28
commit cc8b8ecf0b
3 changed files with 59 additions and 0 deletions

14
.woodpecker.yml Normal file
View 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
View 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
View 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"