mirror of
https://github.com/casjaysdevdocker/deno
synced 2025-12-01 04:13:02 -05:00
Some checks failed
deno-2.1 / release-deno-2_1 (push) Failing after 13m56s
deno-2.0 / release-deno-2_0 (push) Failing after 13m59s
deno-1.46 / release-deno-1_46 (push) Failing after 14m2s
deno-2 / release-deno-2 (push) Failing after 9m48s
deno-1 / release-deno-1 (push) Failing after 10m13s
release-tag / release-image (push) Failing after 10m29s
Dockerfile Dockerfile.1.46 Dockerfile.2.0 Dockerfile.2.1 .env.scripts .env.scripts.1.46 .env.scripts.2.0 .env.scripts.2.1 .gitea/workflows/docker-1_46.yaml .gitea/workflows/docker.1.yaml .gitea/workflows/docker-2_0.yaml .gitea/workflows/docker-2_1.yaml .gitea/workflows/docker.2.yaml .gitea/workflows/docker.yaml rootfs/root/docker/setup/05-custom.sh rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/etc/docker/functions/entrypoint.sh
59 lines
2.0 KiB
Bash
Executable File
59 lines
2.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
##@Version : 202511291200-git
|
|
# @@Author : CasjaysDev
|
|
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
|
|
# @@License : MIT
|
|
# @@ReadME :
|
|
# @@Copyright : Copyright 2023 CasjaysDev
|
|
# @@Created : Mon Aug 28 06:48:42 PM EDT 2023
|
|
# @@File : 05-custom.sh
|
|
# @@Description : script to install Deno
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# shellcheck shell=bash
|
|
# shellcheck disable=SC2016
|
|
# shellcheck disable=SC2031
|
|
# shellcheck disable=SC2120
|
|
# shellcheck disable=SC2155
|
|
# shellcheck disable=SC2199
|
|
# shellcheck disable=SC2317
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Set bash options
|
|
set -o pipefail
|
|
[ "$DEBUGGER" = "on" ] && echo "Enabling debugging" && set -x$DEBUGGER_OPTIONS
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Set env variables
|
|
exitCode=0
|
|
LANG_VERSION="${LANG_VERSION:-latest}"
|
|
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Predefined actions
|
|
echo "Installing Deno version: ${LANG_VERSION}"
|
|
|
|
# Install Deno
|
|
if [ "$LANG_VERSION" = "latest" ]; then
|
|
echo "Installing latest Deno..."
|
|
curl -fsSL https://deno.land/install.sh | sh || exitCode=1
|
|
else
|
|
echo "Installing Deno v${LANG_VERSION}..."
|
|
# Deno versions need v prefix and patch version
|
|
curl -fsSL https://deno.land/install.sh | sh -s "v${LANG_VERSION}.0" || exitCode=1
|
|
fi
|
|
|
|
# Move to /usr/local/bin
|
|
if [ -f "$HOME/.deno/bin/deno" ]; then
|
|
mv "$HOME/.deno/bin/deno" /usr/local/bin/deno || exitCode=1
|
|
rm -rf "$HOME/.deno"
|
|
echo "Deno installed successfully"
|
|
deno --version || exitCode=1
|
|
else
|
|
echo "Deno installation failed" >&2
|
|
exitCode=1
|
|
fi
|
|
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Set the exit code
|
|
exit $exitCode
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# ex: ts=2 sw=2 et filetype=sh
|