diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..1010377 --- /dev/null +++ b/.woodpecker.yml @@ -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] diff --git a/apko.yaml b/apko.yaml new file mode 100644 index 0000000..745693c --- /dev/null +++ b/apko.yaml @@ -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 diff --git a/melange.yml b/melange.yml new file mode 100644 index 0000000..e765dd9 --- /dev/null +++ b/melange.yml @@ -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"