commit 28740ea956d044ed7f8c7948915d0116674662fa Author: Nulo Date: Tue May 9 19:07:00 2023 -0300 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd8b220 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# sources +kawipiko/ \ No newline at end of file diff --git a/.ko.yaml b/.ko.yaml new file mode 100644 index 0000000..b5585f6 --- /dev/null +++ b/.ko.yaml @@ -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 diff --git a/Taskfile.yaml b/Taskfile.yaml new file mode 100644 index 0000000..7f6650c --- /dev/null +++ b/Taskfile.yaml @@ -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