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

Commit cc695e5

Browse files
committed
Added watchexec #4012
1 parent 4f6d78a commit cc695e5

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4787,6 +4787,17 @@
47874787
"datasourceTemplate": "github-releases",
47884788
"extractVersionTemplate": "^v(?<version>.+?)$"
47894789
},
4790+
{
4791+
"fileMatch": [
4792+
"^tools/watchexec/manifest.yaml$"
4793+
],
4794+
"matchStrings": [
4795+
"version: \"?(?<currentValue>.*?)\"?\\n"
4796+
],
4797+
"depNameTemplate": "watchexec/watchexec",
4798+
"datasourceTemplate": "github-releases",
4799+
"extractVersionTemplate": "^v(?<version>.+?)$"
4800+
},
47904801
{
47914802
"fileMatch": [
47924803
"^tools/watchtower/manifest.yaml$"

tools/watchexec/Dockerfile.template

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
curl --silent --location --fail "https://github.com/watchexec/watchexec/releases/download/v${version}/watchexec-${version}-${arch}-unknown-linux-musl.tar.xz" \
10+
| tar --extract --xz --directory="${prefix}${target}/bin/" --strip-components=1 --no-same-owner \
11+
"watchexec-${version}-${arch}-unknown-linux-musl/watchexec" \
12+
"watchexec-${version}-${arch}-unknown-linux-musl/watchexec.1"
13+
14+
mv "${prefix}${target}/bin/watchexec.1" "${prefix}${target}/share/man/man1/"
15+
EOF
16+
17+
# completion
18+
#RUN <<EOF
19+
#"${prefix}${target}/bin/foo" completion bash >"${prefix}${target}/share/bash-completion/completions/foo"
20+
#"${prefix}${target}/bin/foo" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/foo.fish"
21+
#"${prefix}${target}/bin/foo" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_foo"
22+
#EOF

tools/watchexec/manifest.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: watchexec
2+
version: "1.21.1"
3+
check: ${binary} --version | cut -d' ' -f2
4+
platforms:
5+
- linux/amd64
6+
#- linux/arm64
7+
tags:
8+
- category/development
9+
- lang/rust
10+
- type/daemon
11+
homepage: https://github.com/watchexec/watchexec
12+
description: Executes commands in response to file modifications
13+
renovate:
14+
datasource: github-releases
15+
package: watchexec/watchexec
16+
extractVersion: ^v(?<version>.+?)$

0 commit comments

Comments
 (0)