Skip to content

Commit

Permalink
Added gomplate
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Dec 12, 2023
1 parent 21f2b5a commit 0a332c3
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
12 changes: 12 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2495,6 +2495,18 @@
"version: \"?(?<currentValue>.*?)\"?\\n"
]
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
"depNameTemplate": "hairyhenderson/gomplate",
"extractVersionTemplate": "^v(?<version>.+?)$",
"fileMatch": [
"^tools/gomplate/manifest.yaml$"
],
"matchStrings": [
"version: \"?(?<currentValue>.*?)\"?\\n"
]
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
Expand Down
13 changes: 13 additions & 0 deletions tools/gomplate/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#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 "hairyhenderson/gomplate" "v${version}" "gomplate_linux-${alt_arch}"
curl --silent --location --fail --output "${prefix}${target}/bin/gomplate" \
"https://github.com/hairyhenderson/gomplate/releases/download/v${version}/gomplate_linux-${alt_arch}"
chmod +x "${prefix}${target}/bin/gomplate"
EOF
19 changes: 19 additions & 0 deletions tools/gomplate/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# yaml-language-server: $schema=https://tools.uniget.dev/schema.yaml
$schema: https://tools.uniget.dev/schema.yaml
name: gomplate
version: "3.11.6"
check: ${binary} --version | cut -d' ' -f3
platforms:
- linux/amd64
- linux/arm64
tags:
- category/development
- lang/go
- type/cli
homepage: https://github.com/hairyhenderson/gomplate
description: flexible commandline tool for template rendering
renovate:
datasource: github-releases
package: hairyhenderson/gomplate
extractVersion: ^v(?<version>.+?)$
priority: low

0 comments on commit 0a332c3

Please sign in to comment.