mirror of
https://github.com/casjaysdevdocker/deno
synced 2025-12-01 16:13:04 -05:00
🗃️ Updated Dockerfile* and .env.scripts* 🗃️
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
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
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
##@Version : 202509161145-git
|
||||
##@Version : 202511291200-git
|
||||
# @@Author : CasjaysDev
|
||||
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
|
||||
# @@License : MIT
|
||||
@@ -8,7 +8,7 @@
|
||||
# @@Copyright : Copyright 2023 CasjaysDev
|
||||
# @@Created : Mon Aug 28 06:48:42 PM EDT 2023
|
||||
# @@File : 05-custom.sh
|
||||
# @@Description : script to run custom
|
||||
# @@Description : script to install Deno
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# shellcheck shell=bash
|
||||
# shellcheck disable=SC2016
|
||||
@@ -24,15 +24,35 @@ set -o pipefail
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Set env variables
|
||||
exitCode=0
|
||||
LANG_VERSION="${LANG_VERSION:-latest}"
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Predefined actions
|
||||
echo "Installing Deno version: ${LANG_VERSION}"
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Main script
|
||||
# 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
|
||||
#exitCode=$?
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
exit $exitCode
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# ex: ts=2 sw=2 et filetype=sh
|
||||
|
||||
Reference in New Issue
Block a user