Skip to content

Commit

Permalink
Added runme
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Nov 5, 2024
1 parent 6c3969b commit a944789
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
12 changes: 12 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -7542,6 +7542,18 @@
"version: \"?(?<currentValue>.*?)\"?\\n"
]
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
"depNameTemplate": "stateful/runme",
"extractVersionTemplate": "^v(?<version>.+)$",
"fileMatch": [
"^tools/runme/manifest.yaml$"
],
"matchStrings": [
"version: \"?(?<currentValue>.*?)\"?\\n"
]
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
Expand Down
40 changes: 40 additions & 0 deletions tools/runme/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#syntax=docker/dockerfile:1.11.0@sha256:1f2be5a2aa052cbd9aedf893d17c63277c3d1c51b3fb0f3b029c6b34f658d057

FROM registry.gitlab.com/uniget-org/images/ubuntu:24.04 AS prepare
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
ARG name
ARG version
RUN --mount=type=cache,target=/var/cache/uniget/download <<EOF
echo "### Setting architecture string for ${TARGETPLATFORM}"
case "${arch}" in
x86_64)
export arch_suffix="${arch}"
;;
aarch64)
export arch_suffix="${alt_arch}"
;;
*)
echo "ERROR: Unsupported architecture ${arch}."
exit 1
;;
esac
echo " Using ${arch_suffix}"

url="https://github.com/stateful/runme/releases/download/v${version}/runme_linux_${arch_suffix}.tar.gz"
filename="$( basename "${url}" )"

check-github-release-asset "stateful/runme" "v${version}" "${filename}"
curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}" \
"${url}"

tar --file="${uniget_cache_download}/${filename}" --list
tar --file="${uniget_cache_download}/${filename}" --extract --gzip --directory="${prefix}/bin" --no-same-owner \
runme

"${prefix}/bin/runme" completion bash >"${prefix}/share/bash-completion/completions/runme"
"${prefix}/bin/runme" completion fish >"${prefix}/share/fish/vendor_completions.d/runme.fish"
"${prefix}/bin/runme" completion zsh >"${prefix}/share/zsh/vendor-completions/_runme"
EOF
23 changes: 23 additions & 0 deletions tools/runme/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# yaml-language-server: $schema=https://tools.uniget.dev/schema.yaml
$schema: https://tools.uniget.dev/schema.yaml
name: runme
license:
name: Apache License 2.0
link: https://github.com/stateful/runme/blob/main/LICENSE
version: "3.9.2"
check: ""
platforms:
- linux/amd64
- linux/arm64
tags:
- category/development
- lang/go
- type/cli
homepage: https://runme.dev/
repository: https://github.com/stateful/runme
description: DevOps Notebooks Built with Markdown
renovate:
datasource: github-releases
package: stateful/runme
extractVersion: ^v(?<version>.+)$
priority: low

0 comments on commit a944789

Please sign in to comment.