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

Commit 46d7802

Browse files
committed
Added ksort #3522
1 parent 5c4af99 commit 46d7802

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2618,6 +2618,17 @@
26182618
"datasourceTemplate": "github-releases",
26192619
"extractVersionTemplate": "^v(?<version>.+?)$"
26202620
},
2621+
{
2622+
"fileMatch": [
2623+
"^tools/ksort/manifest.yaml$"
2624+
],
2625+
"matchStrings": [
2626+
"version: \"?(?<currentValue>.*?)\"?\\n"
2627+
],
2628+
"depNameTemplate": "superbrothers/ksort",
2629+
"datasourceTemplate": "github-releases",
2630+
"extractVersionTemplate": "^v(?<version>.+?)$"
2631+
},
26212632
{
26222633
"fileMatch": [
26232634
"^tools/ktop/manifest.yaml$"

tools/ksort/Dockerfile.template

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
url="https://github.com/superbrothers/ksort/releases/download/v${version}/ksort-linux-${alt_arch}.zip"
10+
filename="$(basename "${url}")"
11+
curl --silent --location --fail --remote-name "${url}"
12+
unzip -q -o -d /tmp "${filename}"
13+
mv /tmp/ksort "${prefix}${target}/bin/"
14+
EOF

tools/ksort/manifest.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: ksort
2+
version: "0.4.4"
3+
check: "" # Version field empty
4+
platforms:
5+
- linux/amd64
6+
- linux/arm64
7+
tags:
8+
- category/operations
9+
- lang/go
10+
- type/cli
11+
homepage: https://github.com/superbrothers/ksort
12+
description: Sort manfest files in a proper order by Kind
13+
renovate:
14+
datasource: github-releases
15+
package: superbrothers/ksort
16+
extractVersion: ^v(?<version>.+?)$

0 commit comments

Comments
 (0)