Skip to content

Commit

Permalink
Added tejolote
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Oct 29, 2023
1 parent ac2b8c3 commit 74cdf8a
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
12 changes: 12 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -5930,6 +5930,18 @@
],
"versioningTemplate": "loose"
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
"depNameTemplate": "kubernetes-sigs/tejolote",
"extractVersionTemplate": "^v(?<version>.+?)$",
"fileMatch": [
"^tools/tejolote/manifest.yaml$"
],
"matchStrings": [
"version: \"?(?<currentValue>.*?)\"?\\n"
]
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
Expand Down
17 changes: 17 additions & 0 deletions tools/tejolote/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#syntax=docker/dockerfile:1.6.0

ARG ref=main

FROM ghcr.io/uniget-org/tools/base:${ref} AS prepare
ARG name
ARG version
RUN <<EOF
check-github-release-asset "kubernetes-sigs/tejolote" "v${version}" "tejolote-${alt_arch}-linux"
curl --silent --location --fail --output "${prefix}${target}/bin/tejolote" \
"https://github.com/kubernetes-sigs/tejolote/releases/download/v${version}/tejolote-${alt_arch}-linux"
chmod +x "${prefix}${target}/bin/tejolote"

"${prefix}${target}/bin/tejolote" completion bash >"${prefix}${target}/share/bash-completion/completions/tejolote"
"${prefix}${target}/bin/tejolote" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/tejolote.fish"
"${prefix}${target}/bin/tejolote" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_tejolote"
EOF
21 changes: 21 additions & 0 deletions tools/tejolote/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# yaml-language-server: $schema=https://tools.uniget.dev/schema.yaml
$schema: https://tools.uniget.dev/schema.yaml
name: tejolote
version: "0.2.1"
check: ${binary} version | grep ^GitVersion | cut -dv -f2
platforms:
- linux/amd64
- linux/arm64
tags:
- org/kubernetes
- category/security
- lang/go
- type/cli
- cicd
homepage: https://github.com/kubernetes-sigs/tejolote
description: Some description
renovate:
datasource: github-releases
package: kubernetes-sigs/tejolote
extractVersion: ^v(?<version>.+?)$
priority: low

0 comments on commit 74cdf8a

Please sign in to comment.