Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 6e46021

Browse files
committed
Added bat #3527
1 parent d287cf4 commit 6e46021

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,17 @@
250250
"datasourceTemplate": "github-releases",
251251
"extractVersionTemplate": "^v(?<version>.+?)$"
252252
},
253+
{
254+
"fileMatch": [
255+
"^tools/bat/manifest.yaml$"
256+
],
257+
"matchStrings": [
258+
"version: \"?(?<currentValue>.*?)\"?\\n"
259+
],
260+
"depNameTemplate": "sharkdp/bat",
261+
"datasourceTemplate": "github-releases",
262+
"extractVersionTemplate": "^v(?<version>.+?)$"
263+
},
253264
{
254265
"fileMatch": [
255266
"^tools/bin/manifest.yaml$"

tools/bat/Dockerfile.template

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6+
WORKDIR /tmp/bat
7+
ARG name
8+
ARG version
9+
RUN <<EOF
10+
curl --silent --location "https://github.com/sharkdp/bat/releases/download/v${version}/bat-v${version}-x86_64-unknown-linux-gnu.tar.gz" \
11+
| tar --extract --gzip --strip-components=1 --no-same-owner
12+
mv bat "${prefix}${target}/bin/"
13+
mv bat.1 "${prefix}${target}/share/man/man1/"
14+
mv autocomplete/bat.bash "${prefix}${target}/share/bash-completion/completions/bat"
15+
mv autocomplete/bat.fish "${prefix}${target}/share/fish/vendor_completions.d/"
16+
mv autocomplete/bat.zsh "${prefix}${target}/share/zsh/vendor-completions/_bat"
17+
EOF

tools/bat/manifest.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: bat
2+
version: 0.22.1
3+
check: ${binary} --version | cut -d' ' -f2
4+
tags:
5+
- type/cli
6+
homepage: https://github.com/sharkdp/bat
7+
description: cat(1) clone with wings
8+
renovate:
9+
datasource: github-releases
10+
package: sharkdp/bat
11+
extractVersion: ^v(?<version>.+?)$

0 commit comments

Comments
 (0)