-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c3969b
commit a944789
Showing
3 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |