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

Commit 470e7cd

Browse files
committed
Added jqp
1 parent aebdd99 commit 470e7cd

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

renovate.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,6 +2598,17 @@
25982598
"* 21 * * *"
25992599
]
26002600
},
2601+
{
2602+
"matchFiles": [
2603+
"^tools/jqp/manifest.yaml$"
2604+
],
2605+
"matchPackageNames": [
2606+
"noahgorstein/jqp"
2607+
],
2608+
"schedule": [
2609+
"* 21 * * *"
2610+
]
2611+
},
26012612
{
26022613
"matchFiles": [
26032614
"^tools/jsonnet/manifest.yaml$"
@@ -8154,6 +8165,17 @@
81548165
],
81558166
"versioningTemplate": "loose"
81568167
},
8168+
{
8169+
"datasourceTemplate": "github-releases",
8170+
"depNameTemplate": "noahgorstein/jqp",
8171+
"extractVersionTemplate": "^v(?<version>.+?)$",
8172+
"fileMatch": [
8173+
"^tools/jqp/manifest.yaml$"
8174+
],
8175+
"matchStrings": [
8176+
"version: \"?(?<currentValue>.*?)\"?\\n"
8177+
]
8178+
},
81578179
{
81588180
"datasourceTemplate": "github-releases",
81598181
"depNameTemplate": "google/go-jsonnet",

tools/jqp/Dockerfile.template

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#syntax=docker/dockerfile:1.5.2
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6+
ARG name
7+
ARG version
8+
RUN <<EOF
9+
echo "### Setting architecture string for ${TARGETPLATFORM}"
10+
case "${arch}" in
11+
x86_64)
12+
export arch_suffix="${arch}"
13+
;;
14+
aarch64)
15+
export arch_suffix="${alt_arch}"
16+
;;
17+
*)
18+
echo "ERROR: Unsupported architecture ${arch}."
19+
exit 1
20+
;;
21+
esac
22+
echo " Using ${arch_suffix}"
23+
24+
curl --silent --location --fail "https://github.com/noahgorstein/jqp/releases/download/v${version}/jqp_${version}_Linux_${arch_suffix}.tar.gz" \
25+
| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner \
26+
jqp
27+
EOF

tools/jqp/manifest.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: jqp
2+
version: "0.4.0"
3+
check: ${binary} --version | cut -d' ' -f3
4+
platforms:
5+
- linux/amd64
6+
- linux/arm64
7+
tags:
8+
- category/development
9+
- lang/go
10+
- type/tui
11+
homepage: https://github.com/noahgorstein/jqp
12+
description: TUI playground to experiment with jq
13+
renovate:
14+
datasource: github-releases
15+
package: noahgorstein/jqp
16+
extractVersion: ^v(?<version>.+?)$
17+
priority: low

0 commit comments

Comments
 (0)