ci
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Cat /dev/Nulo 2023-02-27 11:30:29 -03:00
parent 8db4d463ad
commit 92dbdb4741
3 changed files with 64 additions and 0 deletions

15
.woodpecker.yml Normal file
View file

@ -0,0 +1,15 @@
# 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
privileged: true
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 --repository-append "$(pwd)/packages" --keyring-append melange.rsa.pub apko.yaml gitea.nulo.in/nulo/nftmashin:latest
secrets: [REGISTRY_SECRET]

19
apko.yaml Normal file
View file

@ -0,0 +1,19 @@
contents:
repositories:
- https://dl-cdn.alpinelinux.org/alpine/v3.17/main
packages:
- alpine-baselayout-data
- nftmachin
accounts:
groups:
- groupname: nftmachin
gid: 10000
users:
- username: nftmachin
uid: 10000
run-as: 10000
work-dir: /usr/share/nftmachin
entrypoint:
command: /usr/bin/nftmachin

30
melange.yml Normal file
View file

@ -0,0 +1,30 @@
package:
name: nftmachin
version: 0.0.1
epoch: 0
description: "art project"
target-architecture:
- all
dependencies:
runtime:
- ca-certificates-bundle
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/nftmachin"
- name: Copy assets
runs: |
mkdir -p /usr/share/nftmachin
cp -r templates assets /usr/share/nftmachin/