diff --git a/renovate.json b/renovate.json index 230bd2b785..f356de8845 100644 --- a/renovate.json +++ b/renovate.json @@ -2735,6 +2735,18 @@ ], "versioningTemplate": "loose" }, + { + "customType": "regex", + "datasourceTemplate": "github-releases", + "depNameTemplate": "jlewi/foyle", + "extractVersionTemplate": "^v(?.+)$", + "fileMatch": [ + "^tools/foyle/manifest.yaml$" + ], + "matchStrings": [ + "version: \"?(?.*?)\"?\\n" + ] + }, { "customType": "regex", "datasourceTemplate": "github-releases", diff --git a/tools/foyle/Dockerfile.template b/tools/foyle/Dockerfile.template new file mode 100644 index 0000000000..38ae481671 --- /dev/null +++ b/tools/foyle/Dockerfile.template @@ -0,0 +1,25 @@ +#syntax=docker/dockerfile:1.12.0@sha256:db1ff77fb637a5955317c7a3a62540196396d565f3dd5742e76dddbb6d75c4c5 + +FROM registry.gitlab.com/uniget-org/images/ubuntu:24.04 AS prepare +COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ + /etc/profile.d/ \ + /etc/profile.d/ +SHELL [ "bash", "-clo", "errexit" ] +ARG name +ARG version +RUN --mount=type=cache,target=/var/cache/uniget/download <"${prefix}/share/bash-completion/completions/foyle" +"${prefix}/bin/foyle" completion fish >"${prefix}/share/fish/vendor_completions.d/foyle.fish" +"${prefix}/bin/foyle" completion zsh >"${prefix}/share/zsh/vendor-completions/_foyle" +EOF \ No newline at end of file diff --git a/tools/foyle/manifest.yaml b/tools/foyle/manifest.yaml new file mode 100644 index 0000000000..3a91582291 --- /dev/null +++ b/tools/foyle/manifest.yaml @@ -0,0 +1,29 @@ +# yaml-language-server: $schema=https://tools.uniget.dev/schema.yaml +$schema: https://tools.uniget.dev/schema.yaml +name: foyle +license: + name: Apache License 2.0 + link: https://github.com/jlewi/foyle/blob/main/LICENSE +version: "0.0.42" +check: ${binary} version | cut -d, -f1 | cut -d' ' -f2 +runtime_dependencies: +- runme +platforms: +- linux/amd64 +- linux/arm64 +tags: +- category/operations +- lang/go +- type/cli +- type/daemon +homepage: https://foyle.io/ +repository: https://github.com/jlewi/foyle +description: Copilot to help developers deploy and operate their applications +messages: + usage: | + You need Visual Studio Code to use this tool. +renovate: + datasource: github-releases + package: jlewi/foyle + extractVersion: ^v(?.+)$ + priority: low \ No newline at end of file