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

Commit f916105

Browse files
committed
Added shellcheck #2990
1 parent 5392fc2 commit f916105

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,6 +2446,17 @@
24462446
"datasourceTemplate": "github-releases",
24472447
"extractVersionTemplate": "^v(?<version>.+?)$"
24482448
},
2449+
{
2450+
"fileMatch": [
2451+
"^tools/shellcheck/manifest.yaml$"
2452+
],
2453+
"matchStrings": [
2454+
"version: \"?(?<currentValue>.*?)\"?\\n"
2455+
],
2456+
"depNameTemplate": "koalaman/shellcheck",
2457+
"datasourceTemplate": "github-releases",
2458+
"extractVersionTemplate": "^v(?<version>.+?)$"
2459+
},
24492460
{
24502461
"fileMatch": [
24512462
"^tools/shortnames/manifest.yaml$"

tools/shellcheck/Dockerfile.template

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/go-md2man:${ref} AS go-md2man
5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6+
7+
ARG name
8+
ARG version
9+
10+
COPY --from=go-md2man / /
11+
12+
RUN <<EOF
13+
apt-get update
14+
apt-get -y install \
15+
xz-utils
16+
curl --silent --location "https://github.com/koalaman/shellcheck/releases/download/v${version}/shellcheck-v${version}.linux.${arch}.tar.xz" \
17+
| tar --extract --xz --directory="${prefix}${target}/bin/" --strip-components=1 --no-same-owner \
18+
shellcheck-v${version}/shellcheck
19+
curl --silent --location --output "${prefix}${target}/share/man/man1/shellcheck.1.md" \
20+
"https://github.com/koalaman/shellcheck/raw/v${version}/shellcheck.1.md"
21+
go-md2man \
22+
-in "${prefix}${target}/share/man/man1/shellcheck.1.md" \
23+
-out "${prefix}${target}/share/man/man1/shellcheck.1"
24+
rm "${prefix}${target}/share/man/man1/shellcheck.1.md"
25+
EOF

tools/shellcheck/manifest.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: shellcheck
2+
version: 0.8.0
3+
check: ""
4+
tags:
5+
- type/cli
6+
- category/development
7+
homepage: https://github.com/koalaman/shellcheck
8+
description: Static analysis tool for shell scripts
9+
renovate:
10+
datasource: github-releases
11+
package: koalaman/shellcheck
12+
extractVersion: ^v(?<version>.+?)$

0 commit comments

Comments
 (0)