This commit is contained in:
Cat /dev/Nulo 2023-05-09 19:07:00 -03:00
commit 28740ea956
3 changed files with 31 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
# sources
kawipiko/

11
.ko.yaml Normal file
View file

@ -0,0 +1,11 @@
builds:
- id: wrapper
dir: kawipiko/sources/
main: ./cmd/wrapper.go
binary: kawipiko
flags:
- -tags=netgo
gcflags:
- all=-l=4
ldflags:
- all=-s

18
Taskfile.yaml Normal file
View file

@ -0,0 +1,18 @@
version: "3"
tasks:
default:
deps:
- task: pull-code
dir: kawipiko/sources
cmds:
- podman run --rm -it
-v $(pwd):/work:Z --workdir=/work
-e KO_DOCKER_REPO=gitea.nulo.in/nulo/kawipiko-container
-v ~/.docker/:/docker-config:Z,ro
-e DOCKER_CONFIG=/docker-config
cgr.dev/chainguard/ko build ./cmd/wrapper --bare
pull-code:
cmds:
- curl -sSf https://gitea.nulo.in/Nulo/kawipiko/archive/encode-urls.tar.gz | tar -xz