Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ script:

env:
- DOCTOCCHECK: true
- NODE_VERSION: '4.*'
- NODE_VERSION: '6.*'
- NODE_VERSION: '8.*'
- NODE_VERSION: '9.*'
- NODE_VERSION: '4'
- NODE_VERSION: '6'
- NODE_VERSION: '8'
- NODE_VERSION: '9'

matrix:
include:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 7 additions & 6 deletions generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ hash git 2>/dev/null || { echo >&2 "git not found, exiting."; }

# Used dynamically: print "$array_" $1
# shellcheck disable=SC2034
array_4_8='4 argon';
array_4='4 argon';
# shellcheck disable=SC2034
array_6_12='6 boron';
array_6='6 boron';
# shellcheck disable=SC2034
array_8_9='8 carbon';
array_8='8 carbon';
# shellcheck disable=SC2034
array_9_1='9 latest';
array_9='9 latest';

cd "$(cd "${0%/*}" && pwd -P)";

Expand Down Expand Up @@ -47,11 +47,12 @@ for version in "${versions[@]}"; do
# Skip "docs" and other non-docker directories
[ -f "$version/Dockerfile" ] || continue

eval stub="$(echo "$version" | awk -F. '{ print "$array_" $1 "_" $2 }')";
eval stub="$(echo "$version" | awk -F. '{ print "$array_" $1 }')";
commit="$(fileCommit "$version")"
fullVersion="$(grep -m1 'ENV NODE_VERSION ' "$version/Dockerfile" | cut -d' ' -f3)"
minorVersion="$(echo "$fullVersion" | cut -d'.' -f2)"

versionAliases=( $fullVersion $version ${stub} )
versionAliases=( $fullVersion $version.$minorVersion ${stub} )
# Get supported architectures for a specific version. See details in function.sh
supportedArches=( $(get_supported_arches "$version" "default") )

Expand Down
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function update_node_version {
shift
fi

fullVersion="$(curl -sSL --compressed 'https://nodejs.org/dist' | grep '<a href="v'"$version." | sed -E 's!.*<a href="v([^"/]+)/?".*!\1!' | cut -f 3 -d . | sort -n | tail -1)"
fullVersion="$(curl -sSL --compressed 'https://nodejs.org/dist' | grep '<a href="v'"$version." | sed -E 's!.*<a href="v([^"/]+)/?".*!\1!' | cut -d'.' -f2,3| sort -n | tail -1)"
(
cp "$template" "$dockerfile"
local fromprefix=
Expand Down