Skip to content

Commit

Permalink
Added foyle
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Dec 12, 2024
1 parent 65f8439 commit 385b222
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
12 changes: 12 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2735,6 +2735,18 @@
],
"versioningTemplate": "loose"
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
"depNameTemplate": "jlewi/foyle",
"extractVersionTemplate": "^v(?<version>.+)$",
"fileMatch": [
"^tools/foyle/manifest.yaml$"
],
"matchStrings": [
"version: \"?(?<currentValue>.*?)\"?\\n"
]
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
Expand Down
25 changes: 25 additions & 0 deletions tools/foyle/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -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 <<EOF
url="https://github.com/jlewi/foyle/releases/download/v${version}/foyle_${version}_linux_${alt_arch}"
filename="$( basename "${url}" )"

check-github-release-asset "jlewi/foyle" "v${version}" "${filename}"
curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}" \
"${url}"

install --mode=0755 \
"${uniget_cache_download}/${filename}" \
"${prefix}/bin/foyle"

"${prefix}/bin/foyle" completion bash >"${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
29 changes: 29 additions & 0 deletions tools/foyle/manifest.yaml
Original file line number Diff line number Diff line change
@@ -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(?<version>.+)$
priority: low

0 comments on commit 385b222

Please sign in to comment.